KeyError: 'data'

shubham
Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/Shubham/SMI.py', wdir='C:/Users/Shubham')

File "C:\Users\Shubham\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile
execfile(filename, namespace)

File "C:\Users\Shubham\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 101, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/Shubham/SMI.py", line 224, in
strategy()

File "C:/Users/Shubham/SMI.py", line 97, in strategy
tick = tickdata()

File "C:/Users/Shubham/SMI.py", line 19, in tickdata
r1=rjson['data']['last_price']

KeyError: 'data'
Sign In or Register to comment.