BTCMarkets / API

API
119 stars 30 forks source link

Calling historic data endpoint with "paging.newer" request immediately returns single record #154

Closed sushant-here closed 5 years ago

sushant-here commented 5 years ago

Hi, I would have thaught that 'immediately' calling the 'paging.newer" endpoint returned by the historic data endpoint would return no data - however it returns a single item.

Is this so that we can 'overwrite' the data on our end for that particular timestamp since it may have changed?

justin-ngin commented 5 years ago

Hi @sushant40 ,

It is only returning a datapoint because the since parameter is inclusive. It is not meant to indicate that calling the newer endpoint would necessarily give you an updated candle. In fact, we don't recommend polling this endpoint for real-time candle updates.

Cheers, Justin