A complete crypto trading implementation in Python for Binance implemented in an asynchronous fashion on Binance Testnet Futures.
- Install poetry as a package manager.
- Clone the repo and run
poetry install
to setup the virtual environment. - Configure your
keys.py
file. You can get the API keys from the Testnet portal. - Navigate to
app.py
and make changes as you seem fit. - Currently only implementation for SMA Crossover is added. But you can inherit the
BaseStrategy.py
and write a custom strategy for yourself.
To understand briefly why everything was done in a certain manner, I'd recommend you to read this doc.
- The DB contains the sample data at the minute interval and the logs for order placed on a single account.
SMACrossover
is the main class that runs the bot viaSMAStrategyRun
function inapp.py