New Https Connection everytime for historical_data

kratmac
Hi Team,
I am getting live data every minute using the historical_data. My query is for every minute it is starting a new https connection
DEBUG:Starting new HTTPS connection (1): api.kite.trade:443
Is this the case ? does it mean the previous connection will get closed automatically ? or is my way of coding wrong.
  • SRIJAN
    SRIJAN edited October 2021
    Historical data is not meant for streaming live data. Its only for back testing purposes. Use websocket to get realtime data.
  • kratmac
    i only require last n minute data, even for that i have to use websocket. will be querying after n minutes.
  • rakeshr
    You can form candles at your end using websocket stream. This thread explains more.
Sign In or Register to comment.