Introduction
OkEX Advanced API Interface for FMZ.com.
This FMZ template provides **OkEX Advanced API** functions for quantitative trading scripts. It integrates some OkEX advanced API functions and requires initialization before use.
## OkEX futures
`future` optional parameters: `this_week`, `next_week`, `quarter`; default is `this_week`.
```python
OkEXFuture = ext.OkEXFuturePlus(exchange, future=string) # create a new interface object
OkEXFuture = ext.OkEXFuturePlus(exchanges[0], future=string) # multiple exchanges
```
## OkEX spot
TBD / still being written.
## Order operations - futures
### Bulk orders
- `BulkAdd()` adds a new order to the local order list. `side`, `price`, and `amount` are required parameters. If `symbol` or `future` is not provided, the default trading-pair settings are used. `matchPrice` defaults to `False`; set it to `True` to use counterparty-price trading.
```python
OkEXFuture.BulkAdd(side=string, price=float, amount=integer, matchPrice=False, symbol=string, future=string)
```
- `BulkClear()` clears local unsubmitted orders. If `symbol` is specified, it can clear orders for the specified trading pair; otherwise it clears all orders. `notify` controls whether logs are displayed and defaults to display.
```python
OkEXFuture.BulkClear(symbol=string, notify=True)
```
- `BulkPost()` submits local unsubmitted orders. If `symbol` is specified, only orders for the specified trading pair are submitted; otherwise all orders are submitted. `future` must be specified together with `symbol`; when specified, only orders for that trading pair and contract are submitted.
```python
OkEXFuture.BulkPost(symbol=string, future=string)
```
- `BulkOrders()` views local unsubmitted orders. If `symbol` is specified, only orders for the specified trading pair are viewed; otherwise all orders are viewed. `future` must be specified together with `symbol`; when specified, only orders for that trading pair and contract are viewed.
```python
OkEXFuture.BulkOrders(symbol=string, future=string)
```
## Notes
The source states **Python2/3**, **OKEX**, **Extent-API**, and **Template**. The code is licensed under **GNU General Public License v3.0**. Deployment is intended for the FMZ strategy/bot environment with an initialized exchange object and configured OkEX API access; the source material does not provide server specifications or pricing.
OkEX APIFMZ templatePython2/3Futures APIBatch ordersLocal ordersGPLv3
Screenshots

Deployment
FMZ 平台策略模板
适用于在 FMZ.com 上复制该 Python2/3 模板源码,并作为量化策略组件在平台内回测或运行。
Details
Type Commercial software
Last verified 2026-07-18
Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.