Skip to main content

Changelog

25/10/2023

Add the required permission description to the interface

21/02/2023

After this upgrade, We optimized the /viewer/transfer api, now you can transfer between master-account's fund/spot account and sub-account's fund/spot account. Please refer to transfer page for details

8/11/2022

New endpoints for trading fee:

  • GET /viewer/trading_fees: Get all asset pair trading fees of users or specified asset pair trading fees

2/06/2022

After this upgrade, You can subscribe to orders without specifying a asset pair

13/04/2022

After this upgrade, You can assign a client order id to create order and get or cancel a order by it. And batch create stop orders is disabled. Please refer to Spot>Order page for details.

21/10/2021

After this upgrade, We optimized the /viewer/transfer api, now you can transfer between master-account and sub-account. Please refer to transfer page for details.

10/06/2021

After this upgrade, We optimized the /viewer/transfer api, now you can transfer in or out from the contract account. Please refer to transfer page for details

12/05/2021

After this upgrade, we will returned orders in reverse order by update_at, which used to id. And closed orders only support querying the last three natural months, none-filled orders can only query the last 24 hours.

01/20/2021

Add transfer between spot account and fund account, payer can not be same as payee

01/19/2021

Web socket market depth snapshot response add changeId field

Web socket market depth update response add changeId/prevId field

Return all orders while get orders by ALL state

Order add REJECTED state, this state represents request was rejected for some reason when you create order

9/21/2020

Return all pending and fired orders while get orders by pending state.

6/17/2020

Support Post-Only orders, If you only want to fill orders as a maker, you can set the post_only paramter to true when you create them. But post_only and immediate_or_cancel can't be true at the same time.

5/31/2020

After this upgrade, we will return the orders except none filled orders by default when you request the closed order list. If you want to query the NONE_FILLED orders, set the state params to NONE_FILLED.

获取已完结订单(closed orders)列表时,默认不再返回零成交(NONE_FILLED)状态的订单。如果您需要查询此类型的订单,请指定 state 参数为 NONE_FILLED

The inserted time and updated time of orders and trades have already accurate to milliseconds. In some sorting scenarios, the inserted time is more accurate than id.