Follow this guide to get started with this repository.
- Linux distribution (tested with Ubuntu 20.04 LTS)
- Python 3.6+ (tested with 3.8.10)
- Ipython3 / Jupyter Notebook
- Pip
- Virtualenv
- Git
-
Clone the repository
git clone [email protected]:ivopetiz/algotrading.git
-
Enter a virtual environment
cd algotrading virtualenv -p python3.6 env source env/bin/activate
-
Install requirements
pip install -r requirements.txt
-
Get Binance API keys
-
Create a Binance trading account here, if you don't have an account yet.
-
-
Add keys to OS environment variables
export BINANCE_API_KEY=<your_api_key> export BINANCE_API_SECRET=<your_api_secret>
-
Run Crypto Algo Trading in realtime (Fake money mode)
import cryptoalgotrading.entry as entries import cryptoalgotrading.exit as exits import cryptoalgotrading.cryptoalgotrading as cat cat.realtime('binance', entries.cross_smas, exits.cross_smas, interval='1m', refresh_interval=60)
You can run the script above in a Jupyter notebook, Ipython or as a Python script.
-
Get results
- A file named
indicators.log
will be created in the current directory. - Can be checked in realtime using the command
tail -f indicators.log
- A file named
-
Next steps:
- Create your own strategies to enter and exit trades.
- Test your strategies in backtest mode.
- Run in real money mode.