Historical data Download issue

I am attempting to download the historical daily data for futures in a given symbol, but I have encountered an issue where nothing is being downloaded. Could you please assist me in resolving this problem?

Hello @Raj27

Welcome to Dhan Community!

This shouldn’t be happening. Can you share the response that you are getting on the API?

Hi @Hardik thank you for your response . I’m getting empty data frame

Hello @Raj27

Got it. Can you check the Security ID List. There might be a case here, where you are entering incorrect expiry code and that is why the data is not being fetched.

Hi @Hardik,

Could you please provide some examples? I checked the master list, and it’s showing zero.

Thanks!

Hello @Raj27

Yes, looking into this. Looks like something is missing on our end.

Hello @Raj27

Yes, checked this. Over here, the security ID list should reflect expiry code as well, which it isn’t.

For future contracts, you need to use expiry code as follows:

near 1
next 2
far 3

You can try with this, will look into updating the Security ID list as well.