Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

Mercury is configured primarily through CLI flags. There is no config file required for basic operation.

CLI flags

FlagDefaultDescription
--symbol—Trading symbol, e.g. BTCUSDT or AAPL
--exchangebinanceExchange: binance, coinbase, yahoo
--strategy—Strategy name: market_maker, rsi, momentum, arbitrage
--paperfalseEnable paper trading via PaperGateway
--log-levelinfoTracing log level

Environment variables

VariableDescription
BINANCE_API_KEYBinance REST/WS API key
BINANCE_SECRET_KEYBinance HMAC secret
COINBASE_API_KEYCoinbase Advanced Trade key
COINBASE_SECRET_KEYCoinbase secret

Storage

Mercury writes its SQLite database to mercury.db in the current working directory. Override with --db-path:

cargo run --bin mercury -- run --symbol BTCUSDT --paper --strategy rsi --db-path /tmp/mercury.db

Use :memory: for ephemeral in-process storage (useful in tests).