How to Import Data Candles and Set them to Perform Algo Trading-Zerodha-...





import requests
import pandas as pd

r=requests.get('https://api.kite.trade/instruments/historical/5633/minute?
api_key=xxx&access_token=yyy&from=2017-09-08+09:00:00&to=2017-09-08+10:00:00')
data=r.json()
data=pd.DataFrame(data['data']['candles'],columns=['Date','Open','High','Low','Close','Volume'])
print(data['Open'])