It looks like you're new here. If you want to get involved, click one of these buttons!
for i in range(3):
try:
from io import StringIO
header_data = {
'X-Kite-Version': '3',
'Authorization': 'token '+str(kite_rc)+":"+str(access_token_rc),
'Content-Type': 'application/json'
}
r = requests.get('https://api.kite.trade/instruments',
headers=header_data)
data = StringIO(r.text)
instruments_df = pd.read_csv(data)
break
except Exception as e:
print("Error",e)