Hello Team
I have a Dash app wherein I am using multiple APIs like OHLC market quote, Market Feed websocket, Place Order, Modify Order, Order History, etc… From the documentation, I understand two things:
- Non-websocket usage: API Request Limit is 25 requests per second, 250 per minute, etc… and,
- Websocket usage: Stream limit: 100 instruments per connection…
I am trying to create an API usage calculator for my app… In this regard, I have following questions:
- Non-websocket usage: the request structure is specific to each APIs: for instance, the OHLC market quote is where one can specify multiple instruments in a single API call, whereas in the orders history API, one needs to use the API for every order ID… In such a scenario, how do we define a count of request?
- Web-socket usage: I assume that this limit is over and above the API request limit (25 per second and so on…), please correct if my understanding is correct…
- Just as a peripheral question, is there a way to discretize the connection to the websocket, may be get a feed every 5 seconds or so… I tried inserting await.sleep(5) inside the example code, but it does not seem to work…
Thanks
Ankush