mismatch in data

Imran
Imran edited April 30 in Kite Publisher
I requested historical api for 15 min data for ujjivan stock 9:45 candle..

the data returned was ...
{'close': 320.4,
'date': datetime.datetime(2019, 4, 30, 9, 45, tzinfo=tzoffset(None, 19800)),
'high': 322.05,
'low': 320.2,
'open': 322.05,
'volume': 2284}]

here the data that i got is incorrect for 15 min data..
actually, it returned 1 min data at 9:45 candle..

same problem is also with some other stocks ..

i used this code: records = kite.historical_data(token, from_date, to_date, "15minute")

  • rakeshr
    @Imran
    actually, it returned 1 min data at 9:45 candle.
    Yeah, that's correct because if you request for 15-minute candle data at it's start,here i.e 09:45 AM, it will have same values as of 1-minute data of 09:45 AM, as current available data is only for 1st minute to form a 15minute candle.
    Are you looking for 15 minutes of data for 09:30:00 to 09:44:59AM?
    Then you need to look for 9:30 AM 15 minute candle.15 minutes candle are formed in below period, 09:15 to 09:29:59 ,09:30:00 to 09:44:59,etc.
  • Imran
    Imran edited April 30
    Yeah, that's correct because if you request for 15-minute candle data at it's start,here i.e 09:45 AM, it will have same values as of 1-minute data of 09:45 AM, as current available data is only for 1st minute to form a 15minute candle.

    this solved the issue..
    thanks a lot
This discussion has been closed.