Error in fetching option chain

Today in Nifty and yesterday in Sensex
{‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: {‘data’: {‘805’: ‘Too many requests. Further requests may result in the user being blocked.’}, ‘status’: ‘failed’}}
@Hardik @Tradehull_Imran

Hello @Happy_Life

This must be on the Market Quotes API. Can you tell me the frequency of polling at your end for LTP/Quote?

In every 15 Second.
data = dhan.option_chain(security_id, under_exchange_segment=“IDX_I”, expiry=expiry)

It was working on 14 and i earned little profit. But after that too many crashes in alo due to this error.

The rate limit on option chain is once every 3 seconds. Are you polling at this rate only?

If yes and still facing issue, kindly DM your Client ID. We will check the logs at our end.

i do it once in 15 second. I will send you my client id

Hi @Hardik, I am also facing this issue. I am not running my code in a loop, just running it once and still getting the failure output. Can you please help me with this too? I am happy to share my client ID.

Hey @Shivesh_Prakash

Welcome to MadeForTrade community!

Can you share the exact error that you are getting as the response?

I am using

dhan.option_chain(under_security_id=13,
under_exchange_segment="IDX_I",
expiry="2026-03-10")

And getting
{'status': 'failure',
'remarks': {'error_code': None, 'error_type': None, 'error_message': None},
'data': ''}

Hey @Shivesh_Prakash

Can you check if you do have a valid Data API subscription active? Also, if you can DM the client ID - so that we can check it on the logs.