BitMEX / api-connectors

Libraries for connecting to the BitMEX API.
https://www.bitmex.com/app/restAPI
909 stars 804 forks source link

Creation of order via bravado python takes >=10 requests of rate-limit #507

Closed derlykk closed 2 years ago

derlykk commented 2 years ago

Hello,

when I’m creating orders via bravado python the rate limit gets deducted by 10, is this normal? What needs to be done to spare requests since bulk orders are gone?

Thank you!

Request: client.Order.Order_new(symbol=order_symbol, orderQty=adjusted_quantity, side=side, price=price, execInst='ParticipateDoNotInitiate')

Output: response: {'orderID': ...} x-ratelimit-remaining: 111, x-ratelimit-limit: 120, x-ratelimit-reset: 1643146465 response: {'orderID': ...} x-ratelimit-remaining: 101, x-ratelimit-limit: 120, x-ratelimit-reset: 1643146466 response: {'orderID': ...} x-ratelimit-remaining: 90, x-ratelimit-limit: 120, x-ratelimit-reset: 1643146468 response: {'orderID': ...} x-ratelimit-remaining: 79, x-ratelimit-limit: 120, x-ratelimit-reset: 1643146469