BitMEX CCXT Configuration¶
BitMEX has documented Lumibot CCXT examples, but it is not currently one of the
global auto-detected credential paths. Use an explicit Ccxt config and
validate exchange-specific behavior carefully.
Status¶
Live trading path: explicit
CcxtconfigCredential style: API key and secret
Backtesting: documented CCXT backtesting exchange id:
bitmexAsset class: crypto derivatives exchange; verify product support before live use
Manual Config¶
from lumibot.brokers import Ccxt
BITMEX_CONFIG = {
"exchange_id": "bitmex",
"apiKey": "your_api_key",
"secret": "your_api_secret",
"margin": False,
"sandbox": False,
}
broker = Ccxt(BITMEX_CONFIG)
Backtesting¶
export BACKTESTING_DATA_SOURCE=bitmex
BitMEX products can involve leverage, contract multipliers, and derivative semantics that differ from spot crypto. Validate the exact asset, quantity, margin, and PnL behavior before live trading.