no data staplility

palani_kmp
I am observing that every few minutes get interrupt to get "Last_trade price" from instrument symbols from python ..I am getting attached error message..

my code as below:

def main():
b3 = requests.get('https://api.kite.trade/instruments/NSE/ICICIBANK?api_key=myapikey&access_token=my token')
b3json=b3.json()
price3=float("{0:.1f}".format(b3json['data']['last_price']))



#####my logic here #######

while True:
main()
time.sleep(5)



kindly let me know how to fix this.
Sign In or Register to comment.