question

Upvotes
Accepted
209 6 14 27

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?


#technologyrfa
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
80.9k 264 53 75

@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
209 6 14 27

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.

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.