Spot Trade Endpoints
New Order
Rate limit rule: 10 requests/1s
HTTP Request new order
POST /api/spot/v1/trade/orders
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol:/products |
side | String | Yes | Trade Direction |
orderType | String | Yes | Trade Type limit/market |
force | String | Yes | Order Type |
price | String | No | Limit Order Price |
quantity | String | Yes | Amount |
clientOrderId | String | No | Client Order ID |
Response:
Response Field
Field | Description |
---|---|
orderId | order id |
clientOrderId | client order id |
Place Multiple Orders
Rate limit rule: 5 requests/1s
HTTP Request Place Multiple Orders
POST /api/spot/v1/trade/batch-orders
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol: /products |
orderList | List | Yes | List of Orders |
orderList Field
Parameters | Type | Required | Description |
---|---|---|---|
side | String | Yes | Trade Direction |
orderType | String | Yes | Trade Type limit/market |
force | String | Yes | Order Type |
price | String | No | Limit Order Price |
quantity | String | Yes | Amoun |
clientOrderId | String | No | Client Order ID |
Response:
Cancel Order
Rate limit rule: 10 requests/1s
HTTP Request Cancel order
POST /api/spot/v1/trade/cancel-order
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol :/products |
orderId | String | Yes | Order id array |
Response:
Cancel Multiple Orders
Rate limit rule: 10 request/1s
HTTP Request Cancel multiple orders
POST /api/spot/v1/trade/cancel-batch-orders
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol:/products |
orderIds | String[] | Yes | Order id array |
Response:
Get Order details
Rate limit rule: 10 request/1s
HTTP Request get order details by order id or client order id
POST /api/spot/v1/trade/orderInfo
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symnol:/products |
orderId | String | Yes | Order id |
clientOrderId | String | No | Custom order id |
Response:
Response Field
Field | Description |
---|---|
accountId | account id |
symbol | Currency pair name |
orderId | Order id |
clientOrderId | Custom id |
price | price |
quantity | Order quantity |
orderType | Order type |
side | Order direction |
status | status |
fillPrice | Transaction price |
fillQuantity | Transaction quantity |
fillTotalAmount | Total transcation volume |
cTime | Created time |
Get Pending Orders
Rate limit rule: 10 request/1s
HTTP Request Get unfilled and partially filled uncancelled orders
POST /api/spot/v1/trade/open-orders
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol:/products |
Response:
Response Field
Field | Description |
---|---|
accountId | Account ID |
symbol | Currency pair |
orderId | order id |
clientOrderId | Custom id |
price | Order price |
quantity | Order quantity |
orderType | Order type |
side | Order direction |
status | status |
fillPrice | Transaction price |
fillQuantity | Transaction quantity |
fillTotalAmount | Total transcation volume |
cTime | Created time |
Get Traded Order Record
Rate limit rule: 20 request/1s
HTTP Request Get all filled and cancelled orders
POST /api/spot/v1/trade/history
Request Parameter
参数名 | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol:/products |
after | String | No | use orderId, the data before this orderId desc |
before | String | No | use orderId, the data after this orderId asc |
limit | Integer | No | default 100, max. is 500 |
Response:
Response Field
Field | Description |
---|---|
accountId | Account ID |
symbol | Currency pair |
orderId | Order id |
clientOrderId | Custom ID |
price | Order price |
quantity | Order quantity |
orderType | Order type |
side | Order direction |
status | Order status |
fillPrice | Transaction price |
fillQuantity | Transaction quantity |
fillTotalAmount | Total transcation volume |
cTime | Created time |
Get Transaction Details
Rate limit rule: 20 request/1s
HTTP Request get transaction detail history
POST /api/spot/v1/trade/fills
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Symbol:/products |
orderId | String | No | Order ID |
after | String | No | use in orderId, the data before this orderId desc |
before | String | No | use in the orderId, the data after this orderId asc |
limit | Integer | No | default 100, max. 500 |
Response:
Response Field
Field | Description |
---|---|
accountId | Account ID |
symbol | Currency pair |
orderId | Order id |
fillId | Transaction ID |
orderType | Order type |
side | Order direction |
fillPrice | Transaction price |
fillQuantity | Transaction quantity |
fillTotalAmount | Total transaction volume |
cTime | Creatied time |
feeCcy | Coin for transaction fee |
fees | Transaction fees |
Last updated