The output comes out as follows:-
{'status': 'success', 'data': []}
The input is as follows:-
url = "https://api.upstox.com/v2/option/chain"
params={'instrument_key': "NSE_FO|37263",
"expiry_date": "2024-02-15",}
headers = {
'Accept': 'application/json',
'Authorization':f'Bearer {token}'
}
payload={}
response = requests.get(url, headers=headers, data=payload, params=params)
print(response.json())
Help would be much appreciated.