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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 1

Market depth (L2 data) "Complete" flag

Hi,

I have question related to Market Depth response (L2 data).

In "Refresh" message which is the first response we receive sometimes contains flag called "Complete". I understand that the default of this flag is true if not present and we should wait for the next Refresh message.

Is it possible to get this 'Complete' flag even in "Update" event types (i.e all messages we receive after the "Refresh" ?

treprdp-apiwebsocketsrrto
icon clock
10 |1500

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

Upvotes
Accepted
13k 32 12 18

Complete flag will only be included in the Refresh message. Update messages will not have this flag - however, due to race around condition, it might happen that you receive an Update message before the final Refresh message is received. So you should be able to handle this situation in your application.

See the message description for MBO here - https://docs-developers.refinitiv.com/1595352524651/14977/#page/RDM%2520Usage%2FMarketbyOrder.2.2.html%23

icon clock
10 |1500

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

Thank you for your reply. If we receive update messages in between refresh messages then what should be the order in which we should consume?

Process all refresh messages in the order in which received and then process all updates in the same order we received (i.e all updates received before last refresh)

Upvotes
20.3k 73 10 20

Hi @krishna muppavarapu

As you are looking at L2 data, you may also find this article useful. Whilst using EMA C++ for the coding, much of the intro section and techniques would apply to data received using Websocket API as well.


icon clock
10 |1500

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

Click below to post an Idea Post Idea