Request parameters.
Gets block trades for a specific account.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Query account funding flows.
Weight(IP): 1
Security Type: USER_DATA
Notes:
Request parameters.
Get trades for a specific account and symbol.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
This endpoint resets the time from which the countdown will begin to the time this messaged is received. It should be called repeatedly as heartbeats. Multiple heartbeats can be updated at once by specifying the underlying symbols as a list (ex. BTCUSDT,ETHUSDT) in the underlyings parameter.
Weight(IP): 10
Security Type: TRADE
Notes:
Request parameters.
Cancel all active orders on specified underlying.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Cancel all active order on a symbol.
Weight(IP): 5
Security Type: TRADE
Request parameters.
Cancel a block trade order.
Weight(IP): 5
Security Type: TRADE
Request parameters.
Cancel multiple orders.
Weight(IP): 5
Security Type: TRADE
Notes:
orderId and clientOrderId must be sent.Request parameters.
Cancel an active order.
Weight(IP): 1
Security Type: TRADE
Notes:
orderId and clientOrderId must be sent.Request parameters.
Test connectivity to the Rest API and get the current server time.
Weight(IP): 1
Close out a user data stream.
Weight(IP): 1
Security Type: USER_STREAM
Current exchange trading rules and symbol information
Weight(IP): 1
Extends a block trade expire time by 30 mins from the current time.
Weight(IP): 5
Security Type: TRADE
Request parameters.
This endpoint returns the auto-cancel parameters for each underlying symbol. Note only active auto-cancel parameters will be returned, if countdownTime is set to 0 (ie. countdownTime has been turned off), the underlying symbol and corresponding countdownTime parameter will not be returned in the response.
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
Get config for MMP.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Get historical exercise records.
REALISTIC_VALUE_STRICKEN -> Exercised EXTRINSIC_VALUE_EXPIRED -> Expired OTM
Weight(IP): 3
Request parameters.
Get spot index price for option underlying.
Weight(IP): 1
Request parameters.
Keepalive a user data stream to prevent a time out. User data streams will close after 60 minutes. It's recommended to send a ping about every 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
Kline/candlestick bars for an option symbol. Klines are uniquely identified by their open time.
Weight(IP): 1
Notes:
Request parameters.
Send in a new block trade order.
Weight(IP): 5
Security Type: TRADE
Request parameters.
Send a new order.
Security Type: TRADE
Notes: Some parameters are mandatory depending on the order type as follows:
| Type | Mandatory parameters |
|---|---|
| LIMIT | timeInForce, quantity, price |
Request parameters.
Get open interest for specific underlying asset on specific expiration date.
Weight(IP): 0
Request parameters.
Get current account information.
Weight(IP): 3
Security Type: USER_DATA
Request parameters.
Option mark price and greek info.
Weight(IP): 5
Request parameters.
Get current position information.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Check orderbook depth on specific symbol
| Weight: limit | weight |
|---|---|
| 5, 10, 20, 50 | 1 |
| 100 | 5 |
| 500 | 10 |
| 1000 | 20 |
Request parameters.
Send multiple option orders.
Weight(IP): 5
Security Type: TRADE
Notes: Some parameters are mandatory depending on the order type as follows:
| Type | Mandatory parameters |
|---|---|
| LIMIT | timeInForce, quantity, price |
Request parameters.
Query block trade details; returns block trade details from counterparty's perspective.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Check block trade order status.
Weight(IP): 5
Security Type: TRADE
Request parameters.
Query current all open orders, status: ACCEPTED PARTIALLY_FILLED
Weight: 1 for a single symbol; 40 when the symbol parameter is omitted
Security Type: USER_DATA
Request parameters.
Query all finished orders within 5 days, finished status: CANCELLED FILLED REJECTED.
Weight(IP): 3
Security Type: TRADE
Request parameters.
Check an order status.
These orders will not be found:
order status is CANCELED or REJECTED, AND
order has NO filled trade, AND
created time + 3 days < current time
Weight(IP): 1
Security Type: TRADE
Notes:
orderId or clientOrderId must be sent.Request parameters.
Get recent block trades
Weight(IP): 5
Request parameters.
Get recent market trades
Weight(IP): 5
Request parameters.
Reset MMP, start MMP order again.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Generic function to send a request.
The API endpoint to call.
HTTP method to use (GET, POST, DELETE, etc.).
Query parameters for the request.
Body parameters for the request.
A promise resolving to the response data object.
Generic function to send a signed request.
The API endpoint to call.
HTTP method to use (GET, POST, DELETE, etc.).
Query parameters for the request.
Body parameters for the request.
A promise resolving to the response data object.
This endpoint sets the parameters of the auto-cancel feature which cancels all open orders (both market maker protection and non market maker protection order types) of the underlying symbol at the end of the specified countdown time period if no heartbeat message is sent. After the countdown time period, all open orders will be cancelled and new orders will be rejected with error code -2010 until either a heartbeat message is sent or the auto-cancel feature is turned off by setting countdownTime to 0.
Weight(IP): 1
Security Type: TRADE
Notes:
Request parameters.
Set config for MMP. Market Maker Protection(MMP) is a set of protection mechanism for option market maker, this mechanism is able to prevent mass trading in short period time. Once market maker's account branches the threshold, the Market Maker Protection will be triggered. When Market Maker Protection triggers, all the current MMP orders will be canceled, new MMP orders will be rejected. Market maker can use this time to reevaluate market and modify order price.
Weight(IP): 1
Security Type: TRADE
Request parameters.
Start a new user data stream. The stream will close after 60 minutes unless a keepalive is sent. If the account has an active listenKey, that listenKey will be returned and its validity will be extended for 60 minutes.
Weight(IP): 1
Security Type: USER_STREAM
Test connectivity to the Rest API.
Weight(IP): 1
24 hour rolling window price change statistics.
Weight(IP): 5
Request parameters.
Sign TradFi Options agreement contract
Weight(IP): 50
Security Type: USER_DATA
Request parameters.
Get account commission.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Get account exercise records.
Weight(IP): 5
Security Type: USER_DATA
Request parameters.
Accept a block trade order
Weight(IP): 5
Security Type: TRADE