I am trying to fetch option chain data through api but when i trying to connect auth.py run and past auth code there was an error, kindly please do help me
error code :
Error: {‘code’: -441, ‘message’: ‘invalid grant type’, ‘s’: ‘error’}
I am trying to fetch option chain data through api but when i trying to connect auth.py run and past auth code there was an error, kindly please do help me
error code :
Error: {‘code’: -441, ‘message’: ‘invalid grant type’, ‘s’: ‘error’}
This might help. Review whether you’re passing all parameters correctly to the API.
url = “https://api-t1.fyers.in/data/options-chain-v3”
headers = {
“Authorization”: access_token,
“Content-Type”: “application/json”
}
payload = {
“symbol”: NSE:NIFTY50-INDEX, # You must provide the symbol in this format: “NSE:NIFTY50-INDEX” or “NSE:NIFTYBANK-INDEX”
“strikecount”: 5, # Choose based on your requirement (e.g., 5, 6, 7, 10, 20)
“timestamp”: 1764064800
}