historical_data volume field is wonky

devshoe
The values i'm getting are off massively
for adaniports

{'close': 370.55,
'date': datetime.datetime(2020, 2, 6, 15, 0, tzinfo=tzoffset(None, 19800)),
'high': 370.75,
'low': 368.7,
'open': 368.7,
'volume': 2591}

Charts show :165.081k
infact even the ohlc is off by a small amount
  • rakeshr
    rakeshr edited February 2020
    @devshoe
    'date': datetime.datetime(2020, 2, 6, 15, 0, tzinfo=tzoffset(None, 19800)),
    Can you let us know the interval period, you rare checking for?
  • devshoe
    Hi, it doesnt matter, because all intervals return wrong stuff
    15 minutes btw
  • sujith
    I just checked for ADANIPORTS 15min candle data for 6th feb 2020 and it seems fine.

    Can you paste the sample request and response?
  • devshoe

    Here you go, 15minute candles are showing up like this, using the default historical_data method
  • rakeshr
    @devshoe
    Showing fine for us for pykiteconnect.
    {'date': datetime.datetime(2020, 2, 6, 13, 30, tzinfo=tzoffset(None, 19800)), 'open': 370.7, 'high': 370.85, 'low': 369.2, 'close': 369.9, 'volume': 100571}
    {'date': datetime.datetime(2020, 2, 6, 13, 45, tzinfo=tzoffset(None, 19800)), 'open': 369.9, 'high': 370, 'low': 367.7, 'close': 368.6, 'volume': 134479}
    {'date': datetime.datetime(2020, 2, 6, 14, 0, tzinfo=tzoffset(None, 19800)), 'open': 368.7, 'high': 369.1, 'low': 368.1, 'close': 368.85, 'volume': 34904}
    Can you make sure that, you are sending correct instrument_token of ADANIPORTS i.e 3861249?
    Can you paste here a complete debug log, by running in debug mode?
  • devshoe
    OH WOW thanks so much you were right. If you're interested, the problem was that I get the list of instruments every morning, and store it in mongodb. When I retrieve it, it seems to return this other adaniports because there are 2 entries with the SAME trading symbol (check photo), one for NSE and one for BSE, so the symbol returned to me was the BSE one!

    Thanks so much to kiteconnect team! :)
This discussion has been closed.