Eikon api, get_data field name. GEN_VAL2, TR.OFFICIALASKPRICE

I tried out get_data(CMZ0, GEN_VAL2)

but fieldname GEN_VAL2 is not exist on itembrowser


but exist on quote

1666227728703.png


and what I want to ask is

there are TR.OFFICIALASKPRICE on itembrowser.
1666227758951.png

I want to ask that does

get_data(CMZ0, GEN_VAL2)

get_data(CMZ0, TR.OFFICIALASKPRICE)

return same value?


Best Answer

Answers

  • Thanks for your kind reply paulcerillo

    Could you tell me how to find the information that I want from the url that you linked with?

  • Oh, and one more thing
    You told me not to use inappropriate fields as parameters
    There are quite a lot of gen_valX that I have received now
    How can I find the field value that exactly maps to gen_val?

  • Hi the URL above is where we input the corresponding value of the FID#5357 for the instrument of our query. In this case, 1236 is the value FID#5357 CONTEXT ID for RIC <CMZN0>.

    We then search for the FID 997 in FixSpec.

  • Hi, the fixspec (link above) allows you to view the FID details specific to the RIC's exchange or source.


    For example, if you open in Q app <CMZN0 Q> and display all fields. You will see that the corresponding Context_ID (FID#5357) for CMZN0 is "1236". You can input this number on the search bar on the fixspec and search "GEN_VAL2" or "FID997".

    You look for the Context_ID (FID#5357) of the RIC you are interested in and input it on the FixSpec data model dictionary.

  • I did not advise not to use illogical fids. It's just to let you know that the fid you were using is illogical field. These type of fids are not "common" across other RICs. Some RICs may have a different value for FID#997.