Historical data api not working
-
@admin I am able to fetch profile data, session data is also valid and status is true, but when I call candle data api I am getting error invalid token url, plzz help
my client id is A282484
-
@asif_khan1993 Try example code here.
-
@algo_trading_50 I tried with this example only but getting
Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData. Error: Invalid API Key -
@asif_khan1993 Try creating an API app from here.
-
@algo_trading_50 I have already created the app, named asif_api,
-
from SmartApi import SmartConnect API_KEY = 'API_KEY' JWT_TOKEN = 'JWT_TOKEN' obj = SmartConnect(access_token=JWT_TOKEN, api_key=API_KEY) historicParam = { "exchange": "NSE", "symboltoken": "1594", "interval": "ONE_MINUTE", "fromdate": "2026-03-19 09:00", "todate": "2026-03-19 09:16" } candles = obj.getCandleData(historicParam) print(candles)