A high-performance cryptocurrency quantitative trading bot written in Rust.
- Live Trading: Connect to real exchange accounts for automated trading.
- Strategy Backtesting: Test the performance of trading strategies on historical data.
- Parameter Optimization: Find the optimal parameters for your strategies.
- Data Downloading: Download historical K-line data from exchanges.
- Profit Transfer: Automatically transfer profits from futures to spot accounts.
- Bybit
- Binance
- Bitget
- Gate.io
- Hyperliquid
- OKX
- Clone the repository:
git clone https://github.com/your-username/passivbot-rs.git cd passivbot-rs
- Build the project:
The executable will be located at
cargo build --release
target/release/passivbot-rs
.
The main configuration file for the bot. Here you can configure parameters for live trading, backtesting, optimization, and the trading strategy itself.
To use the live trading and profit transfer features, you need to create an api-keys.json
file in the root directory of the project. This file should contain the API key and secret for the exchange you want to use.
api-keys.json
example:
{
"test_user": {
"exchange": "bybit",
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET"
}
}
./target/release/passivbot-rs live --user test_user
./target/release/passivbot-rs backtest
./target/release/passivbot-rs optimize
./target/release/passivbot-rs download
./target/release/passivbot-rs profit-transfer --user test_user --amount 100 --asset USDT
Trading cryptocurrencies involves significant risk. This bot is provided "as is", and the author is not responsible for any financial losses you may incur. Always do your own research and use this bot at your own risk.