symbol = "NIFTY"
start_date = "15-05-2023"
end_date ="1-06-2023"
instrumentType = "options"
expiry_date ="15-Jun-2023"
strikePrice = 18600
optionType="PE"
print(derivative_history(symbol,start_date,end_date,instrumentType,expiry_date,strikePrice,optionType))
Above code is giving an error. The error:
raceback (most recent call last):
File "/Users/nijanjyakhwo/Splash_Trade_Automation/Strategy/Rough/Rough.py", line 25, in <module>
print(derivative_history(symbol,start_date,end_date,instrumentType,expiry_date,strikePrice,optionType))
File "/Users/nijanjyakhwo/anaconda3/lib/python3.10/site-packages/nsepython/rahu.py", line 647, in derivative_history
total = pd.concat([total, derivative_history_virgin(symbol, start_date, end_date, instrumentType, expiry_date, strikePrice, optionType)])
File "/Users/nijanjyakhwo/anaconda3/lib/python3.10/site-packages/nsepython/rahu.py", line 594, in derivative_history_virgin
payload = nsefetch(nsefetch_url)
File "/Users/nijanjyakhwo/anaconda3/lib/python3.10/site-packages/nsepython/rahu.py", line 18, in nsefetch
output = requests.get(payload,headers=headers).json()
File "/Users/nijanjyakhwo/anaconda3/lib/python3.10/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)