Crawl data from cryptocurrency exchanges and build bars in realtime.
Bars implemented:
- Time Bar
- Tick Bar
- Volume Bar
- Dollar Bar
More to come: Tick Imbalance Bar, Volume Imbalance Bar, Tick Run Bar, Volume Run Bar, they're elaborated in the book Advances in Financial Machine Learning.
- Install NodeJS
- Run a Redis server at
localhost:6379
- Change the
DATA_DIR
variable in.envrc
and load this file viadirenv
npm install typescript pm2 -g
npm install
npm run build
pm2 start pm2.misc.config.json
pm2 start pm2.trade.config.js
And build bars:
pm2 start pm2.bar.config.js
Open this project in VSCode and you're all set.