Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Capability Matrix
Support of the standard functions and trading-mode commands per exchange object. ✓ supported; ✗ not supported (the call fails with an error and returns null); Synth: the exchange's API does not fully provide the function (no such endpoint, or some K-line periods missing, etc.) and the docker fills the gap, see the exchange page; — not applicable (spot exchange objects have no futures functions).
Market
| Exchange | GetTicker | GetTickers | GetDepth | GetTrades | GetRecords | GetMarkets |
|---|---|---|---|---|---|---|
| Centralized Exchanges | ||||||
AscendEx | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Backpack | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Backpack | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
BigONE | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Binance | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Binance | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Bitfinex | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Bitfinex | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
BitFlyer | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
Bitget | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Bitget | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Bithumb | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Bitstamp | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Bybit | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Bybit | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Coincheck | ✓ | ✗ | ✓ | ✓ | Synth | ✗ |
Coinone | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Coinw | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Coinw | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Crypto | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Crypto | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
DeepCoin | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_DeepCoin | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Deribit | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
DigiFinex | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_DigiFinex | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
GateIO | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_GateIO | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Gemini | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
HashKey | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
HitBTC | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Huobi | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_HuobiDM | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Korbit | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Kraken | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Kraken | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
KuCoin | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_KuCoin | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
LBank | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
MEXC | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_MEXC | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
OKEX | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_OKCoin | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Poloniex | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Upbit | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
WEEX | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_WEEX | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
WOO | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
Futures_WOO | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
Zaif | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
| Decentralized Exchanges (DEX) | ||||||
Hyperliquid | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Hyperliquid | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Lighter | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_EdgeX | ✓ | ✗ | ✓ | ✗ | Synth | ✓ |
Aster | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_ApolloX | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Aster | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_Aevo | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
Pendle | ✓ | ✗ | ✓ | ✗ | ✗ | ✓ |
Futures_Boros | ✓ | ✗ | ✓ | ✓ | ✓ | ✓ |
Futures_WOOFi | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Uniswap | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
PancakeSwap | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
Aerodrome | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
Velodrome | ✓ | ✗ | ✓ | ✓ | Synth | ✓ |
KyberSwap | ✓ | ✗ | ✓ | ✗ | Synth | ✓ |
OneInch | ✓ | ✗ | ✓ | ✗ | Synth | ✓ |
Jupiter | ✓ | ✗ | ✓ | ✗ | Synth | ✓ |
OKX_DEX | ✓ | ✓ | ✗ | ✓ | Synth | ✓ |
| Prediction Markets | ||||||
Futures_Polymarket | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
| Securities and Futures | ||||||
Futures_Futu | ✓ | ✓ | ✓ | ✓ | Synth | ✓ |
Futures_IB | ✓ | ✓ | ✓ | ✗ | Synth | ✓ |
| On-chain & Custom | ||||||
Exchange | ✓ | ✗ | ✓ | ✓ | Synth | ✗ |
Web3 | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Trading
Conditional orders
Account and futures
Trading-mode Commands
Support of the exchange.IO() trading-mode commands: ✓ supported, ✗ not supported (the call fails with an error). For their semantics see the exchange.IO(mode, value) page (under IO). Exchanges not listed support none of them.
| Exchange | simulate | cross | dual | unified | trade_margin | trade_super_margin | trade_normal | selfTradePreventionMode |
|---|---|---|---|---|---|---|---|---|
| Centralized Exchanges | ||||||||
AscendEx | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ | ✗ |
Backpack | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
Futures_Backpack | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ |
Binance | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✓ |
Futures_Binance | ✗ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✓ |
Bitget | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_Bitget | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
Bybit | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ | ✗ |
Futures_Bybit | ✗ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_Coinw | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Crypto | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ | ✗ |
Futures_DeepCoin | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_DigiFinex | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
GateIO | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✗ |
Futures_GateIO | ✗ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
Huobi | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✗ |
Futures_HuobiDM | ✗ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ |
Futures_Kraken | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_KuCoin | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_MEXC | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
OKEX | ✓ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✗ |
Futures_OKCoin | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
WOO | ✗ | ✗ | ✗ | ✗ | ✓ | ✗ | ✓ | ✗ |
Futures_WOO | ✗ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
| Decentralized Exchanges (DEX) | ||||||||
Futures_Hyperliquid | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_Lighter | ✗ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_ApolloX | ✗ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
Futures_Aster | ✗ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ |
Uniswap | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
PancakeSwap | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Aerodrome | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Velodrome | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
KyberSwap | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
OneInch | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |