Trade
All Trade API endpoints require authentication.
Trade Pair List
Response Parameters
Response Example
{
"success": true,
"message": "",
"result": {
"marketpairs": [
"BTC_USDT",
"ETH_USDT",
"XRP_USDT",
"VET_USDT",
"ALGO_USDT",
"MATIC_USDT",
"LINK_USDT",
"QNT_USDT",
"USDC_USDT",
"DOT_USDT"
]
}
}
You can place an order only if you have sufficient funds. For leading contracts, this endpoint supports placement, but can't close positions.
Rate Limit: 60 requests per 2 seconds
Trade Mode, when placing an order, you need to specify the trade mode.
Non-margined:<
- SPOT and OPTION buyer: cash
Single-currency margin account:<
- Isolated MARGIN: isolated
- Cross MARGIN: cross
- SPOT: cash
- Cross FUTURES/SWAP/OPTION: cross
- Isolated FUTURES/SWAP/OPTION: isolated
Multi-currency margin account:<
- Isolated MARGIN: isolated
- Cross SPOT: cross
- Cross FUTURES/SWAP/OPTION: cross
- Isolated FUTURES/SWAP/OPTION: isolated
Portfolio margin:<
- Isolated MARGIN: isolated
- Cross SPOT: cross
- Cross FUTURES/SWAP/OPTION: cross
- Isolated FUTURES/SWAP/OPTION: isolated
Trade Pair Details
Response Parameters
Response Example
{
"success": true,
"message": "",
"result": [
{
"low": "21030.00000",
"high": "21650.00000",
"marketpair": "BTC_USDT",
"coinone": "BTC",
"cointwo": "USDT",
"lastprice": "21395.74",
"exchange": "1.08%",
"volume": "276062.56342"
},
{
"low": "1560.9700",
"high": "1610.0000",
"marketpair": "ETH_USDT",
"coinone": "ETH",
"cointwo": "USDT",
"lastprice": "1593.72",
"exchange": "1.06%",
"volume": "489658.9892"
}
]
}
You can place an order only if you have sufficient funds. For leading contracts, this endpoint supports placement, but can't close positions.
Rate Limit: 60 requests per 2 seconds
HTTP Request
GET /api/tradepairdetails
or
GET /api/tradepairdetails/{pair}
Parameter | Type | Description |
---|---|---|
pair | BTC_USDT | Trade pair with underscore |
clOrdId is a user-defined unique ID used to identify the order. It will be included in the response parameters if you have specified during order submission, and can be used as a request parameter to the endpoints to query, cancel and amend orders.
clOrdId must be unique among the clOrdIds of all pending orders.
Order Book
You can place an order only if you have sufficient funds. For leading contracts, this endpoint supports placement, but can't close positions.
Rate Limit: 60 requests per 2 seconds
HTTP Request
GET /api/orderbook/{pair}
Response Parameters
Response Example
{
"success": true,
"result": [
{
"price": "10.00",
"volume": "1.00",
"total": "10.00000000",
"marketpair": "USDC_USDT"
},
{
"price": "12.00",
"volume": "5.00",
"total": "60.00000000",
"marketpair": "USDC_USDT"
}
],
"message": ""
}
Parameter | Type | Description |
---|---|---|
pair | USDC_USDT | Trade pair with underscore |
Trade Mode, when placing an order, you need to specify the trade mode.
Non-margined:<
- SPOT and OPTION buyer: cash
Single-currency margin account:<
- Isolated MARGIN: isolated
- Cross MARGIN: cross
- SPOT: cash
- Cross FUTURES/SWAP/OPTION: cross
- Isolated FUTURES/SWAP/OPTION: isolated
Multi-currency margin account:<
- Isolated MARGIN: isolated
- Cross SPOT: cross
- Cross FUTURES/SWAP/OPTION: cross
- Isolated FUTURES/SWAP/OPTION: isolated
Portfolio margin:<
- Isolated MARGIN: isolated
- Cross SPOT: cross
- Cross FUTURES/SWAP/OPTION: cross
- Isolated FUTURES/SWAP/OPTION: isolated
clOrdId is a user-defined unique ID used to identify the order. It will be included in the response parameters if you have specified during order submission, and can be used as a request parameter to the endpoints to query, cancel and amend orders.
clOrdId must be unique among the clOrdIds of all pending orders.