A project for building, training, and evaluating machine learning models to predict Bitcoin trading signals using Binance API data.
Click Here! (Thai Version)
- Collects historical price data from Binance API
- Calculates technical indicators such as MA, RSI, MACD, and Bollinger Bands
- Trains multiple ML models such as LR, RF, XGB, KNN, and SVM
- Compares performances, picking the best model, and simulates trading strategies
-
Clone this repository.
-
Install:
pip install python-dotenv python-binance pandas numpy matplotlib scikit-learn xgboost imbalanced-learn -
Create a
.envfile with your Binance API credentials:API_KEY=your_api_key API_SECRET=your_api_secret
- Run the notebook
main.ipynbfor step-by-step instructions. - Follow the notebook cells to collect data, train models, and simulate trading.
- To simulate trading, call the function in a code cell:
Or leave it blank to select a symbol interactively:
simulate("ETHBTC")
simulate()
This project is for educational purposes only. No financial advice.