Binance minimal trading bot with API to easily run and schedule trading strategies. Build algorithms in Typescript with focus on best practices and painless developer experience.
MIT License
Binance minimal trading bot with API to easily run, stop or schedule trading strategies. Build algorithms in Typescript with focus on best practices and painless developer experience.
Easily set up a local development environment with single command!
npm run dev
🚀 (apply database migrations if needed npm run db-migration-generate
)
Run Ocignis React app to start, stop or schedule trading strategies.
npm run backtest-download-data
npm run backtest-seed-database
npm run backtest-run
🚀Run backtest in:
npm run backtest-run
:https://user-images.githubusercontent.com/3073826/225337569-9dc165e9-d5e8-4e36-95cd-23ad7facc34b.mp4
npm run commit
and get instant feedback on your commit message formatting and be prompted for required fields by Commitizen
Command | Description |
---|---|
prepare | Setup git hooks with Husky (executes on npm install) |
build-ocignis-shared | Build and export tRPC types |
dev | Start bot and database |
dev-changed-deps | Build and start bot image |
build | Build bot |
lint | Lint whole repository |
lint-fix | Run lint fix |
lint-staged-husky | Run prettier and lint on staged files |
tsc | Run TypeScript compiler |
test | Run tests |
test-watch | Run tests in watch mode |
format-lint | Lint formatting with Prettier |
format-fix | Fix formatting with Prettier |
commit | Run Commitizen on staged file |
clean | Remove installed, generated and cached folders (node_modules, coverage etc.) |
backtest-download-data | Download binance csv data files |
backtest-seed-database | Seed database for backtesting |
backtest-run | Run backtest |
db-prisma-client-generate | Generate Prisma client |
db-migration-generate | Generate migration |
db-migration-run | Run migration helper |
db-migration-run-dev | Run migration localy on dev |
db-migration-run-prod | Run migration on production |
docker-dev | Start bot localy on dev |
docker-prod | Start bot in production |
docker-compose-run | Start bot and database in docker containers |
docker-compose-run-changed-deps | Build bot image and start |