Skip to content

Commit

Permalink
Updated PlaceMarginOrderAsync ratelimit from 1 per second per key to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 25, 2024
1 parent 595356b commit 17d7744
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public async Task<WebCallResult<BitMartOrderId>> PlaceMarginOrderAsync(string sy
parameters.AddOptionalString("notional", quoteQuantity);
parameters.AddOptional("client_order_id", clientOrderId);
var request = _definitions.GetOrCreate(HttpMethod.Post, "/spot/v1/margin/submit_order", BitMartExchange.RateLimiter.BitMart, 1, true,
new SingleLimitGuard(1, TimeSpan.FromSeconds(1), RateLimitWindowType.Sliding, keySelector: SingleLimitGuard.PerApiKey));
new SingleLimitGuard(20, TimeSpan.FromSeconds(1), RateLimitWindowType.Sliding, keySelector: SingleLimitGuard.PerApiKey));
var result = await _baseClient.SendAsync<BitMartOrderId>(request, parameters, ct, additionalHeaders: new Dictionary<string, string>
{
{ "X-BM-BROKER-ID", _baseClient._brokerId }
Expand Down

0 comments on commit 17d7744

Please sign in to comment.