Timeseries data scraper example, implementing the ideas mentioned in this tutorial.
Scrapes spot data from binance api and stores it in a mongodb database.
Additional features:
- Logging
- Tracking of cron job state and executions (wrapper around the
robfig/cron/v3package)
- Go (min version 1.23)
- Running instance of mongodb. Default port, no auth. installation link
- Reflex (for rebuilding the go app on changes) (installation link)
chmod +x run.sh
# start the binance-pooler/cmd/pooler app
./run.sh pooler
# run tests for the project (will be written under mongodb database called `test`)
./run.sh test├── binance-pooler
│ ├── cmd # entry points for the apps
│ ├── conf # config files
│ ├── internal
│ │ ├── api # api implementation
│ │ └── pooler # data pooler implementations
│ └── pkg
│ ├── app # main app struct and config
│ └── dto # shared types of the parsed data