I'm using the Eikon Data API and I'm not being able to pull the option chain data related to a specific future via ek.get_data. Have attached the screenshot of the chain. The future RIC : MCGBN0. If you could provide the exact command.
Please try '0#MCGB+' representing Multi Commodity Exchange Of India Crude Oil Energy Option Chain Contracts.
df, e = ek.get_data('0#MCGB+',['PRCTCK_1','PCTCHNG','TRDPRC_1','BID','ASK','PUTCALLIND','EXPIR_DATE','STRIKE_PRC']) df.dropna()
The output is:
I am assuming that you are trying to expand "MCGBN0" chain RIC?
The "MCGBN0" is not a chain RIC.
Maybe you can try "0#MCGBN0" ? (I do not have access to it so I could not check).