BitMEX / api-connectors

Libraries for connecting to the BitMEX API.

Home Page:https://www.bitmex.com/app/restAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

derlykk opened this issue · comments

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