My API key is having a specific permissions issue. Using my key, I can successfully download historical data for NFO instruments (options), but when I request historical data for any NSE instrument (equities), I receive an AccessDenied XML error. This proves my connection and token are valid. Please check the permissions on my API key and enable access to the historical data feed for the NSE exchange.