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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
23 1 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.

Hi @Michael_Dirian,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.


Thanks,

AHS

Upvote
Accepted
32.2k 40 11 20

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 1 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.

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.