Kite connect - Require first 5 min High Low range

Tushar
Kindly suggest Is their any functions available in kite connect for fetching the first 5 min High low of a particular instrument. Thanks.
  • hpahel
    In python client:

    You can use kite.historical(script, from_date='2017-03-01', to_date='2017-03-01', interval='5minute')
    and then just take the first row and extract its high and low.
    Although kite.historical is delayed by almost 50 seconds, so first 5min candle will be ready around 9:20:50 AM, If you dont want any delay, you should use WebSocket and form your own 5 min candle.
  • Tushar
    Thanks for the information. Really appreciate it.
  • sujith
    Hi @Tushar,
    As of now we don't have time based data fetch. You can use historical API for this wherein you can give start and end date same as today. For more information check out documentation here.
Sign In or Register to comment.