cryptocom-exchange icon indicating copy to clipboard operation
cryptocom-exchange copied to clipboard

Option for historical candlestick data

Open HymnsForDisco opened this issue 3 years ago • 3 comments

https://github.com/goincrypto/cryptocom-exchange/blob/cc65cac9a79b99a801c61c57cff7f976b21abe51/src/cryptocom/exchange/market.py#L77

I'm not personally a user of this library, but I spent a while figuring this out so I thought I'd share in case it is useful.

The public/get-candlestick endpoint has an undocumented timestamp parameter called end_time which can be used to request historical candlestick data.

HymnsForDisco avatar Dec 13 '21 12:12 HymnsForDisco

on it

yarikdevcom avatar Dec 20 '21 18:12 yarikdevcom

Also I found that the note here https://exchange-docs.crypto.com/spot/index.html#public-get-candlestick listing t as the "end time" of the candlestick is not correct. It appears to be the start time.

HymnsForDisco avatar Dec 21 '21 20:12 HymnsForDisco

nice correction, will check this too

yarikdevcom avatar Dec 21 '21 21:12 yarikdevcom