gmtech-xyz / safe-cex

An OpenSource TypeScript library to create rich trading cryptocurrencies interfaces
https://tuleep.trade
77 stars 23 forks source link

Add startTime/EndTime to fetchOHLCV() as optional parameters #2

Closed lleewwiiss closed 1 year ago

lleewwiiss commented 1 year ago

Both Binance and ByBit support specifying timestamps to timebox OHLCV data, it would be useful to also be able to do this through safe-cex for fetching historical data.

Happy to attempt to implement this for you

iam4x commented 1 year ago

Hey, yes, you can do a PR integrating those options. I would just ask to make them optional, so it doesn't break the current implementation with defaults.