question

Upvotes
Accepted
163 3 7 11

In a RespMsg, how to know number of map entries

Hello,

We are using RFA 8.1 C++ api to consume Level2 market data using MBP and MBO domain. I have below questions -

1. Is it possible that Update(not Refresh) response message be divided into multiple response messages? If YES then how do I supposed to know which is first and last part of it? Is there Something similar to SnapshotCompleteFlag to indicate this is last update message?

2. Is it possible to know number of map entries present in map before iterating over it? I know there is something called TotalCountHint but I suppose it is not present always? Is it correct?


rfa#technology
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
56k 145 45 65

@mktdata

Thanks for reaching out to us.

1. The update message doesn't support multiple parts.

2. Yes, it is totalCountHint in map.However, it is optional.

1669278295911.png

Please feel free to reach out if you have any further questions.


1669278295911.png (89.9 KiB)
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
163 3 7 11

2. Does that mean there is no consistent way to know number of map entries in map?

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.

@mktdata

Correct. Moreover, according to the definition of the TotalCountHint, it is just an approximation, not an exact total number of entries.