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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
23 0 1 2

Filter only Trades from JSON Message with WebSocket API?

Hi,

is the "UpdateType" Key a reliable source to filter only the Trade of a certain Instrument?
Like this example:

-->

20220406_14:54:08:627066 - {"ID":3,"Type":"Update","UpdateType":"Trade","DoNotConflate":true,"Key":

<--

brgds

MIchael


websocketsupdate-message
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.

Upvote
Accepted
32.2k 39 11 19

Hello @Michael_Dirian ,

I see from the question that you are thinking in the same direction:

  • If the service that is being consumed is Tick-By-Tick, not conflated, UpdateType is reliable and can be used for the purpose.
  • If the service is conflated and trade-safe, i.e. trades are not conflated, it can be used as well.
  • If the service is conflated and conflation is not trade-safe, then some Trades may be part of the conflated messages and within, not be discernable as such, so it can not be used.

Hope that this information helps

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.

Upvotes
23 0 1 2

Hi @zoya faberov ,

thanks, answers my question.


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.