[Resolved] Error Explained: 429 Client Error: for url: https://api.dhan.co/v2/charts/intraday

Using new api V2, I am getting 429 client error. Can you please help with this.

Considering the 429 desc, its too many requests . But I am just calling this api only once
Infact below is sample curl syntax used and the output which is not expected as this is just a single api call…

curl --request POST
–url https://api.dhan.co/v2/charts/intraday
–header ‘Accept: application/json’
–header ‘Content-Type: application/json’
–header ‘client-id: xxx’
–header ‘access-token: xxx.xxx.xx’
–data ’ {
“securityId”: “432293”,
“exchangeSegment”: “MCX_COMM”,
“instrument”: “FUTCOM”,
“interval”: “15”,
“fromDate”: “2024-10-14”,
“toDate”: “2024-10-14”
}

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 339 0 158 100 181 227 260 --:–:-- --:–:-- --:–:-- 487**{“errorType”:“Rate_Limit”,“errorCode”:“DH-904”,“errorMessage”:“Too many requests on server from single user breaching rate limits. Try throttling API calls.”}**

Hello @shbtechno

Even with new version of APIs, the rate limits remain the same. You can keep a count on your end on how many requests have you made on any particular endpoint, to keep throttle on the same.

Also, do check if there are any connected platforms that you have used your access token, where the same data can be fetched.

1 Like