Requesting specific field from REFRESH/UPDATE message

mktdata
mktdata Contributor
edited June 19 in RFA

Hello, In RFA C++ api version 8.2, is it possible to request value of specific field? or only way is to iterate on the container?

E.g.

auto bidPrice = msg.Get(BID);

Answers

  • Hello @mktdata

    The app will have to iterate over the field list to get a particular field. There is no method to directly ask for a field. The FieldList data is not organized like a Map or Dictionary and hence not indexed by a key.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @mktdata

    I checked and found that the FieldList supports the find method.

    image.png

    It required a field ID, not a field name.