SolBot is a SOL trading bot that uses various market indicators and strategies to make trading decisions on the Kraken exchange. The bot is built using Python and leverages asynchronous programming to handle real-time data from the Kraken WebSocket API.
- Real-time Data: Utilizes Kraken's WebSocket API for real-time market data.
- Technical Indicators: Implements multiple technical indicators like MACD, RSI, Moving Average, Bollinger Bands, and more.
- Dynamic Trading Strategy: Adjusts trading actions based on a calculated confidence level from multiple indicators.
- Logging: Comprehensive logging of all trades and events for analysis and debugging.
- Configurable Parameters: Easy configuration of bot parameters through a
config.py
file.
-
Clone the Repository:
git clone https://github.com/m0dE/solbot.git cd solbot
-
Create a Virtual Environment:
python3 -m venv venv source venv/bin/activate
-
Install Dependencies:
pip install -r requirements.txt
-
Setup Environment Variables:
Create a
.env
file in the root directory and add your Kraken API credentials:API_KEY=your_kraken_api_key API_SECRET=your_kraken_api_secret
All configurable parameters are stored in the config/config.py
file. You can adjust initial balances, API endpoints, trading fees, and other parameters to suit your trading strategy.
To simulate trading, run:
python simulate.py
To start live trading, run:
python live_trade.py
solbot/
├── api/
│ ├── __init__.py
│ ├── kraken.py
│ └── websocket.py
├── config/
│ └── config.py
├── strategies/
│ └── indicators.py
├── trade/
│ ├── __init__.py
│ ├── trade_logic.py
│ └── volume_calculator.py
├── utils/
│ ├── __init__.py
│ ├── balance.py
│ ├── logger.py
│ ├── periodic_tasks.py
│ ├── trade_utils.py
│ └── websocket_handler.py
├── .env
├── .gitignore
├── index.py
├── live_trade.py
├── requirements.txt
├── simulate.py
└── test_req.py
SolBot uses the following technical indicators:
- MACD (Moving Average Convergence Divergence)
- RSI (Relative Strength Index)
- Moving Average
- Bollinger Bands
- ATR (Average True Range)
- Stochastic Oscillator
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Trading cryptocurrencies involves significant risk and can result in the loss of your invested capital. The bot is provided as-is and should be used at your own risk. Always do your own research before making any trading decisions.