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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
7 1 2 2

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

Upvotes
Accepted
29k 33 11 15

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.