Powered by qoery-py and Nautilus Trader
This repository hosts a collection of trading strategies (Arbitrage, Snipping, Grid) optimized for EVM chains (Ethereum, Base, Arbitrum, Polygon).
All strategies are located in the /strategies folder.
| Strategy | Description | Status |
|---|---|---|
| SMA Crossover | Simple Moving Average (Golden/Death Cross). | ✅ Ready |
| RSI Reversion | Mean reversion based on RSI oscillator (Buy < 30, Sell > 70). | ✅ Ready |
| Grid Trading | Place buy/sell orders at fixed intervals. | 🚧 Planned |
| Arbitrage | Exploit price differences between DEXs. | 🚧 Planned |
git clone https://github.com/qoery-com/python-trading-bot.git
cd python-trading-bot
pip install -r requirements.txtFirst, sign up at Qoery.com to get your free API Key.
Then, copy the example environment file:
cp .env.example .envEdit .env and paste your key:
QOERY_API_KEY=your_api_key_here
Run a simulation using historical data from Qoery.
SMA Strategy:
python main.py backtest --strategy sma --symbol WETH-USDC --interval 15m --days 30RSI Strategy:
python main.py backtest --strategy rsi --symbol WETH-USDC --interval 1h --days 14You can pass custom parameters to strategies using the --params flag.
python main.py backtest --strategy sma --symbol WETH-USDC --params fast_period=20,slow_period=50Currently in Beta (Paper Trading only).
python main.py live --strategy sma --symbol WETH-USDCWe welcome contributions! Whether it's a new strategy, a bug fix, or a documentation improvement. We offer rewards (Free Qoery Plan) for significant contributions.
See CONTRIBUTING.md for details.