CRUDEOIL- dhan.intraday_daily_minute_charts

Hi @Hardik ,

Can you confirm if CRUDEOIL is enable for api.

dhan.intraday_daily_minute_charts(security_id=‘430107’,exchange_segment=‘MCX_COMM’,instrument_type=‘FUTSTK’)

If yes, can you please provide the values for exchange_segment & instrument_type

Hi @Dhan_Cares - Let me know if you need more info

Hello @MukeshM

Yes, we do have Commodities available on APIs. In this request, the exchange_segment is correct. The instrument_type will be OPTFUT or FUTCOM if it is options or futures respectively.

Go it resolved

FUTCOM =>

# SEM_TRADING_SYMBOL = "CRUDEOIL-19Sep2024-FUT"
# SEM_CUSTOM_SYMBOL = "CRUDEOIL SEP FUT"
# SEM_SMST_SECURITY_ID = 430106

intraday_daily_minute_chart_df = dhan.intraday_daily_minute_charts(security_id='430106',exchange_segment='MCX_COMM',instrument_type='FUTCOM')

Hello @MukeshM

Didn’t get this. Were you able to fetch the data?

updated crudeoil parameters

SYMBOL = “CRUDEOIL JAN FUT” # from SEM_TRADING_SYMBOL

EXCHANGE = “MCX” # from SEM_EXM_EXCH_ID

        df = tsl.get_intraday_data(

            tradingsymbol=SYMBOL,

            exchange=EXCHANGE,

            timeframe=TIMEFRAME_MIN,