Skip to content

The Open Source Collection of Python Algo Trading Strategies. Arbitrage, Grid, Scalping, MEV. Powered by qoery.com.

License

Notifications You must be signed in to change notification settings

qoery-com/python-trading-bot

Repository files navigation

python-trading-bot Tweet

Python Version License GitHub forks GitHub stars

Powered by qoery-py and Nautilus Trader

Python Crypto Trading Bot

This repository hosts a collection of trading strategies (Arbitrage, Snipping, Grid) optimized for EVM chains (Ethereum, Base, Arbitrum, Polygon).

Featured Strategies

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

Quick Start

1. Clone & Install

git clone https://github.com/qoery-com/python-trading-bot.git
cd python-trading-bot
pip install -r requirements.txt

2. Configure

First, sign up at Qoery.com to get your free API Key.

Then, copy the example environment file:

cp .env.example .env

Edit .env and paste your key:

QOERY_API_KEY=your_api_key_here

3. Run a Backtest

Run a simulation using historical data from Qoery.

SMA Strategy:

python main.py backtest --strategy sma --symbol WETH-USDC --interval 15m --days 30

RSI Strategy:

python main.py backtest --strategy rsi --symbol WETH-USDC --interval 1h --days 14

4. Custom Parameters

You 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=50

5. Live Trading (Paper Mode)

Currently in Beta (Paper Trading only).

python main.py live --strategy sma --symbol WETH-USDC

Contributing

We 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.

About

The Open Source Collection of Python Algo Trading Strategies. Arbitrage, Grid, Scalping, MEV. Powered by qoery.com.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages