AG8004 Invalid API Key on getCandleData/getLtpData, login works fine


  • Getting {"success":false,"message":"Invalid API Key","errorCode":"AG8004","data":""} on both getCandleData and getLtpData. loginByPassword and getProfile both succeed with the same API key. I've verified my request headers match the official smartapi-python SDK exactly (Content-Type, X-UserType, X-SourceID, X-ClientLocalIP, X-ClientPublicIP, X-MACAddress, X-PrivateKey, Authorization). My dashboard only shows one API Type ("Trading") with no option to add Historical Data/Market Feed separately. Is there a separate activation step needed for historical/quote data access, or something else I'm missing?

    Client ID: M79171


  • Same issue here — running a Nifty-options intraday bot polling getCandleData (FIVE_MINUTE) once every 5 minutes, ~0.003 req/s against the documented 3 req/s/client cap. Comparing the identical 09:15-10:35 window across three consecutive sessions: 12, then 17, then 27 rate-limit rejections, and the last two days both fully exhausted a 6-attempt retry budget on the very first request of the day, before any other call had been made.

    That makes six independent reports of this exact symptom now, across two different endpoints — candle data and order book — all well under documented limits: 5636/5637, 5611, 5625, 5595, 5560. I've put together a fuller writeup with the full data here: https://smartapi.angelbroking.com/smartapi/forum/topic/5639/getcandledata-rate-limit-false-positives-at-0-003-req-sec-six-independent-reports-zero-acknowledgment

    Would genuinely appreciate an actual look at the server-side telemetry rather than another "can't help with your code" response.