Installation
Get up and running with wisp in minutes.
Prerequisites
You'll need Go installed to build and use wisp:
- Go 1.24+ - Install Go
Check your Go version:
go version
Install wisp CLI
Download the wisp repository from GitHub:
git clone https://github.com/wisp-trading/wisp
cd wisp
Build and install wisp:
make install
Verify the installation:
wisp --version
Create a New Strategy
Initialize a new wisp project:
wisp init my-strategy
cd my-strategy
This creates:
strategy.go- Your strategy implementationgo.mod- Go dependenciesconfig.yaml- wisp configurationREADME.md- Project documentation
Project Structure
my-strategy/
├── strategy.go # Your strategy code
├── go.mod # Go module
├── config.yaml # wisp config
└── README.md # Documentation
Backtest Your Strategy
Test your strategy with historical data:
wisp backtest
This runs your strategy against past market data and shows performance metrics:
- Total return
- Win rate
- Maximum drawdown
- Sharpe ratio
- Number of trades
Backtest Options
# Backtest specific date range
wisp backtest --start 2024-01-01 --end 2024-12-31
# Use specific exchange
wisp backtest --exchange binance
# Specify starting capital
wisp backtest --capital 10000
# Detailed output
wisp backtest --verbose
Deploy to Live Trading
Once you're satisfied with backtest results, deploy your strategy:
wisp live
This starts your strategy in live trading mode. wisp will:
- Connect to your configured exchange(s)
- Start monitoring markets in real-time
- Execute trades based on your strategy signals
- Log all activity
Live Trading Options
# Dry run (paper trading - no real orders)
wisp live --dry-run
# Specific exchange
wisp live --exchange binance
# Enable verbose logging
wisp live --verbose
# Custom config file
wisp live --config production.yaml
Configuration
Before running live, configure your exchange API keys in config.yaml:
exchanges:
binance:
api_key: "your-api-key"
api_secret: "your-api-secret"
testnet: false
bybit:
api_key: "your-api-key"
api_secret: "your-api-secret"
testnet: false
strategy:
name: "my-strategy"
interval: "1h"
assets:
- "BTC"
- "ETH"
warning
Never commit sensitive config files to version control. Keep config files with API keys out of your repository.
Quick Commands Reference
# Create new strategy
wisp init <name>
# Backtest strategy
wisp backtest
# Run live (paper trading)
wisp live --dry-run
# Run live (real trading)
wisp live
# View logs
wisp logs
# Check status
wisp status
# Stop running strategy
wisp stop
Next Steps
- Quick Reference - Learn the wisp API basics
- Writing Strategies - Deep dive into strategy development
- Configuration - Detailed config options