For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
7 2 2 3

Batch request limits with Websocket API

Is there a limit on the number of instruments in a batch request in a Websocket API application? As an example can one requests for 25K instruments at once. what is the max?

treprdp-apiwebsocketsrrto
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

Hello @erol.komac,

The hard limit is as described in this previous discussion thread, on single message size.

Personally, I prefer to make websocket batch submission sizing configurable in code, for example:

batch_size = 3000

I find 3K chunks to work well, as do not like to either have to size up the batch requests precisely prior to sending, or to approach the limit.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.