getCandleData for ONE_MINUTE Candle is returning wrong volume


  • Hi,
    I am using smart API for my project, it is returning wrong data for volume in one minute candle. For eg. it is showing around 1k but in the app/site the volume being shown is around 4k-5k.
    How do I fix this issue?

    Thanks.


  • The data is being returned correctly. If you are looking for the data of latest candle, the candle must have not been formed completely yet. eg. If you are looking for 1 min candle, and hitting the API at 30 sec mark, you will get the OLHCV data up till the 30th sec mark only. This may be causing you a confusion.