historical_data API giving wrong values

mehullala
Hello,
I am trying to retrieve 1 min ohlc values for CRUDEOIL19AUGFUT but getting wrong values.
For example,
{'date': datetime.datetime(2019, 7, 26, 9, 57, tzinfo=tzoffset(None, 19800)), 'open': 3886, 'high': 3886, 'low': 3886, 'close': 3886, 'volume': 0}
this is data received from API but actually values for open, high, low and close are not same.

Please help out on the issue.

  • rakeshr
    @mehullala
    {'date': datetime.datetime(2019, 7, 26, 9, 57, tzinfo=tzoffset(None, 19800)), 'open': 3886, 'high': 3886, 'low': 3886, 'close': 3886, 'volume': 0}
    As, the volume is zero, you seems to request at the start of the candle, when OHLC remains same.Instead you should request for current candle post candle formation with delay of 60 seconds.
Sign In or Register to comment.