Good afternoon,
I try to request Eikon API from python to find EUA options open interest relative to strike prices.
I want to get open interest for all strike prices of a contract, for example Dec24 (CFI2Z4).
Please find below my code. I think the code i am using for options is wrong : 0#GCFI2Z*.EX
Thank you for your support,
_____________________________________________________________________
import eikon as ek
ek.set_app_key('My_key')
fields = [ek.TR_Field('TR.RIC'), ek.TR_Field('STRIKE_PRC'), ek.TR_Field('TR.PUTCALLIND'), ek.TR_Field('TR.OPENINTEREST')]
EUA_options = ek.get_data("0#GCFI2Z*.EX", fields=fields)
print(EUA_options)
_____________________________________________________________________