Type/to search
Getting Started
Platform Basics
Writing Strategies
Development Tools
Backtesting System
Advanced Topics
JavaScript Multi-threading
Communication Between Live Trading Strategies
API Rate Limiting Control
Options Trading
Web3
Data and Research
Extended API Interface

The FMZ Quant Trading Platform supports options trading on the cryptocurrency futures exchanges in the table below. Options are used the same way as futures contracts: set the contract to an option code with exchange.SetContractType() (the option code is the exchange's native code, and the format differs between exchanges). After that, market data functions such as GetTicker() and GetDepth() and trading functions such as Buy(), Sell() (set the trade direction with exchange.SetDirection() before placing orders), CancelOrder() and GetPositions() all work on that option contract. You can also place orders with the full instrument code in the form pair.optionCode, for example BTC_USDT.BTC-261225-100000-C.

Option order books are usually thin: when there is no bid or ask, Buy and Sell in the Ticker are 0, and Last may be 0 for a contract that has never traded; see the exchange pages. Whether exchange.GetMarkets() lists option contracts depends on the exchange; where it does not, get the option codes from the exchange's API or website.

Exchange objectPair exampleOption code exampleGetMarkets lists options
Futures_DeribitBTC_USDBTC-25DEC26-100000-CYes
Futures_OKCoin (OKX futures)BTC_USDBTC-USD-261225-100000-CNo
Futures_BinanceBTC_USDTBTC-261225-100000-CNo
Futures_BybitETH_USDTETH-25JUN27-2800-C-USDTYes
Futures_AevoETH_USDCETH-25DEC26-3000-CYes
Futures_GateIOBTC_USDTBTC_USDT-20261225-100000-CYes
Futures_KrakenETH_USDOF_ETHUSD_261225_4000_CNo

The expiries and strikes in these codes are examples only; the contracts you can trade are those currently listed by the exchange.

The exact rules differ between exchanges and are documented in the "Options" section of each exchange page: how option codes are written (for example Deribit's combination options, or XBT for BTC in Kraken codes), where to get option codes when exchange.GetMarkets() does not list them, order restrictions (some exchanges accept only limit orders and support neither order modification, conditional orders nor exchange.SetMarginLevel()), and whether Last in the Ticker falls back to the mark price when there is no trade. Click an exchange name in the table above.

See Also