question

Upvotes
Accepted
646 6 13 25

MarketDataItemEven. How to find out if it's Trade or Quote msg?

RFA 7.

Not uprading to Elektron at this moment.



treprfarfa-api
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.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@igorg

RSSL has the updateType flag which can be used to verify the type of update message.

<updateMsg domainType="RSSL_DMT_MARKET_PRICE" streamId="4" containerType="RSSL_DT_FIELD_LIST" flags="0x90 (RSSL_UPMF_HAS_SEQ_NUM|RSSL_UPMF_DO_NOT_CONFLATE)" updateType="2 (RDM_UPD_EVENT_TYPE_TRADE)" seqNum="606" dataSize="265">

However, this information is not available in the legacy SSL/Marketfeed protocol (MarketDataItemEvent).

For the legacy SSL/Marketfeed protocol, you may need to use fields in the payload to verify if it is a trade or quote message. For example:

  • If it contains the TRDTIM_1 or TRDPRC_1 field, the update message is a trade
  • If it contains the BID, ASK, or QUOTIM field, the update message is a quote

However, you need to directly contact the content team via my.refinittiv.com for confirmation because the data among exchanges may be different. Moreover, for some exchanges, it may have a specific field which can be used to identify trade or quote update.

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.

the problem is very first message is a snapshot and has all the fields.

Click below to post an Idea Post Idea