I am testing now yesterday's last traded
market value shows
I attached the code also anyone please help I need to start at 9:15 am and stop at 3:30 please fix it
##from kiteconnect import KiteConnect
import time
from kiteconnect import KiteTicker
import sys
import pandas as pd
api_key=open('api_key.txt','r').read().strip()
access_token=open('access_token.txt','r').read().strip()
kws = KiteTicker(api_key,access_token)
print(kws)
instruments=pd.read_csv('tokens.csv',names=['instrument_token','tradingsymbol'])
tokens=[i for i in instruments['instrument_token']]
tokens= list(map(int, tokens))
dict={}
symbol=pd.read_csv('tokens.csv',names=['instrument_token','tradingsymbol'])
for x,y in zip(symbol['instrument_token'],symbol['tradingsymbol']):
dict.update({x:y})
#tokens=[60292359,59549447,59658503,]
#dict={60292359:'CRUDEOIL22JULFUT',59549447 : 'GOLD22AUGFUT',59658503 : 'SILVER22SEPFUT',}