Yes, I am trying to fetch Live Candle Data. I am using following API's 1) kite.instuments() 2)kite.instruments(exchange=kite.EXCHANGE_NFO) 3) kite.historical_data(instument_token of all NIFTY 500 Symbols ,'2018-03-01', YESTERDAYS DATE TIME,'DAY') 4) kite.historical_data(instument_token of all NIFTY 500 Symbols ,25 DAYS BEFORE TODAYS DATE, TODAYS DATE TIME,'15MINS')
I am able to fetch data sometimes it gives the response and sometimes it shows critical error . 'Unknown Content-Type (text/html) with response: (b'\r\n502 Bad Gateway\r\n\r\n'). My python exceptions are not able to handle it.
Do let us know all request query params, like instrument token, period (to and from), candle interval.
I am using following API's
1) kite.instuments()
2)kite.instruments(exchange=kite.EXCHANGE_NFO)
3) kite.historical_data(instument_token of all NIFTY 500 Symbols ,'2018-03-01', YESTERDAYS DATE TIME,'DAY')
4) kite.historical_data(instument_token of all NIFTY 500 Symbols ,25 DAYS BEFORE TODAYS DATE, TODAYS DATE TIME,'15MINS')
I am able to fetch data sometimes it gives the response and sometimes it shows critical error . 'Unknown Content-Type (text/html) with response: (b'\r\n502 Bad Gateway\r\n\r\n'). My python exceptions are not able to handle it.