DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.21k stars 2.04k forks source link

Thoughts on backfills based on trade history #2746

Open jorisw opened 2 years ago

jorisw commented 2 years ago

System information

Describe the problem

Zenbot heavily relies on backfills, based on retrieving trade history from exchanges. Zenbot also heavily relies on ccxt, the library that unifies various crypto exchanges into a single unified API.

The manual of ccxt stresses that in general you should not rely on exchanges being able or willing to supply trade history far into the past. Exchanges that don't offer this, generally do offer long candlestick histories, that basically aggregate the same data into 1m to 1M periods.

Long story short, the reliance of Zenbot on trades, rather than candles for historical data, is probably a critical design flaw.

I'm curious to know if current maintainers (if any) of Zenbot concur.