Quickstart
Get Hydra running locally in paper trading mode.
1. Install
Section titled “1. Install”Using Pre-built Binaries (Recommended)
Section titled “Using Pre-built Binaries (Recommended)”curl -fsSL https://raw.githubusercontent.com/rnwolfe/hydra/main/scripts/install.sh | bashThen add to your PATH:
echo 'export PATH="$HOME/.hydra/bin:$PATH"' >> ~/.bashrc && source ~/.bashrcFrom Source
Section titled “From Source”git clone https://github.com/rnwolfe/hydra.gitcd hydrabun install2. Configure
Section titled “2. Configure”Copy the example config:
cp config.example.yaml config.yamlOr use a preset from configs/:
configs/conservative.yaml- Lower risk settingsconfigs/aggressive.yaml- Higher risk settingsconfigs/paper-testing.yaml- For development/testing
export BOT_CONFIG=configs/conservative.yaml3. Start Paper Trading
Section titled “3. Start Paper Trading”# Using binaryhydra run
# From sourcebun run paper
# With verbose logginghydra run --verbose4. View Dashboard
Section titled “4. View Dashboard”Open a second terminal and launch the TUI:
# From source (TUI not available as binary)bun run tui5. Check Latency (Before Live Trading)
Section titled “5. Check Latency (Before Live Trading)”Before going live, measure your network latency to exchanges:
# Using binaryhydra latency
# From sourcebun run latencyExample output:
Binance: REST API: 45ms (avg) WebSocket: 38ms (avg)
Polymarket: REST API: 120ms (avg)
✅ Binance WebSocket latency is excellent (38ms)Deployment Recommendations
Section titled “Deployment Recommendations”For latency arbitrage, your location relative to Binance matters most:
| Region | Binance Latency | Recommendation |
|---|---|---|
| AWS ap-northeast-1 (Tokyo) | ~1-5ms | Best - Binance matching engine location |
| AWS ap-southeast-1 (Singapore) | ~20-30ms | Good alternative |
| US/Europe | ~150-200ms | Not recommended for latency arb |
Run hydra latency from your production server before deploying live.
Next Steps
Section titled “Next Steps”- Configuration Guide - Tune risk limits and strategy parameters
- Live Trading - Prerequisites for real trading
- TUI Dashboard - Monitor positions and P&L