Skip to content

Commit cc2bfc7

Browse files
committed
fix limit for batch
1 parent c40dafc commit cc2bfc7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Source/FikaAmazonAPI/Services/ProductPricingService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public async Task<GetBatchOffersResponse> GetItemOffersBatchAsync(ParameterGetIt
102102
*/
103103

104104
await CreateAuthorizedRequestAsync(ProductPricingApiUrls.GetBatchItemOffers, RestSharp.Method.POST, postJsonObj: parameterGetItemOffersBatchRequest);
105-
return await ExecuteRequestAsync<GetBatchOffersResponse>(RateLimitType.ProductPricing_GetItemOffers);
105+
return await ExecuteRequestAsync<GetBatchOffersResponse>(RateLimitType.ProductPricing_GetItemOffersBatch);
106106
}
107107

108108

@@ -125,7 +125,7 @@ public async Task<GetBatchOffersResponse> GetListingOffersBatchAsync(ParameterGe
125125
*/
126126

127127
await CreateAuthorizedRequestAsync(ProductPricingApiUrls.GetBatchListingOffers, RestSharp.Method.POST, postJsonObj: parameterGetItemOffersBatchRequest);
128-
return await ExecuteRequestAsync<GetBatchOffersResponse>(RateLimitType.ProductPricing_GetItemOffers);
128+
return await ExecuteRequestAsync<GetBatchOffersResponse>(RateLimitType.ProductPricing_GetListingOffersBatch);
129129
}
130130

131131
}

Source/FikaAmazonAPI/Utils/RateLimitType.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ public enum RateLimitType
148148
ProductPricing_GetCompetitivePricing,
149149
ProductPricing_GetListingOffers,
150150
ProductPricing_GetItemOffers,
151+
ProductPricing_GetItemOffersBatch,
152+
ProductPricing_GetListingOffersBatch,
151153

152154
Sales_GetOrderMetrics,
153155

Source/FikaAmazonAPI/Utils/RateLimitsDefinitions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ internal static Dictionary<RateLimitType, RateLimits> RateLimitsTime()
159159
{ RateLimitType.ProductPricing_GetListingOffers, new RateLimits(5.0M, 10) },
160160
{ RateLimitType.ProductPricing_GetItemOffers, new RateLimits(5.0M, 10) },
161161

162+
{ RateLimitType.ProductPricing_GetItemOffersBatch, new RateLimits(0.5M, 1) },
163+
{ RateLimitType.ProductPricing_GetListingOffersBatch, new RateLimits(0.5M, 1) },
164+
162165
{ RateLimitType.Sales_GetOrderMetrics, new RateLimits(0.5M, 15) },
163166

164167
{ RateLimitType.Sellers_GetMarketplaceParticipations, new RateLimits(0.016M, 15) },

0 commit comments

Comments
 (0)