取得訂單詳情
HTTP 請求 根據訂單 id或者自定义id获取订单
- POST
/api/v2/trade/orderInfo
限速规则:10 次/ 1s
請求參數
參數名 | 參數類型 | 是否必須 | 描述 |
---|---|---|---|
orderId | String | 否 | 訂單ID,和clientOrderId必填其中一個 |
clientOrderId | String | 否 | 客戶自定義ID,和orderId必填其中一個 |
請求範例
curl -X POST "https://api-spot.weex.com/api/v2/trade/orderInfo" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"orderId": "602928955330134458"}'
傳回參數
欄位名 | 類型 | 欄位說明 |
---|---|---|
accountId | String | 帳戶 ID |
symbol | String | 交易對 |
orderId | String | 訂單 ID |
clientOrderId | String | 客戶端訂單ID |
price | String | 委託價格 |
quantity | String | 委託數量 |
orderType | String | 訂單類型 |
side | String | 訂單方向 |
status | String | 訂單狀態 |
latestFillPrice | String | 當前委託單最新成交價格 |
maxFillPrice | String | 當前委託單最高成交價格 |
minFillPrice | String | 當前委託單最低成交價格 |
fillQuantity | String | 成交數量 |
fillTotalAmount | String | 已成交總額 |
cTime | String | 創建時間 |
uTime | String | 更新時間 |
傳回範例
{
"code": "00000",
"msg": "success",
"requestTime": 1743754256238,
"data": [{
"accountId": "590105411156181178",
"symbol": "WXTUSDT_SPBL",
"orderId": "602928955330134458",
"clientOrderId": "202504041451014391743749461316",
"price": "100.000000",
"quantity": "10",
"orderType": "limit",
"side": "sell",
"status": "open",
"latestFillPrice": "0",
"maxFillPrice": "0",
"minFillPrice": "0",
"fillQuantity": "0",
"fillTotalAmount": "0",
"cTime": "1743749464829",
"uTime": "1743749464834"
}]
}
取得未成交列表
HTTP 請求 取得未成交和部分成交未撤單的訂單
- POST
/api/v2/trade/open-orders
限速規則:10 次/ 1s
請求參數
參數名 | 參數類型 | 是否必須 | 描述 |
---|---|---|---|
symbol | String | 是 | 幣對,詳見:/products |
limit | Integer | 否 | 取得數量。必須大於0且小於等於100。 |
請求範例
curl -X POST "https://api-spot.weex.com/api/v2/trade/open-orders" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "WXTUSDT_SPBL"}'
傳回參數
欄位名 | 類型 | 欄位說明 |
---|---|---|
accountId | String | 帳戶 ID |
symbol | String | 交易對 |
orderId | String | 訂單 ID |
clientOrderId | String | 客戶端訂單ID |
price | String | 委託價格 |
quantity | String | 委託數量 |
orderType | String | 訂單類型 |
side | String | 訂單方向 |
status | String | 訂單狀態 |
latestFillPrice | String | 當前委託單最新成交價格 |
maxFillPrice | String | 當前委託單最高成交價格 |
minFillPrice | String | 當前委託單最低成交價格 |
fillQuantity | String | 成交數量 |
fillTotalAmount | String | 已成交總額 |
cTime | String | 創建時間 |
uTime | String | 更新時間 |
傳回範例
{
"code": "00000",
"msg": "success",
"requestTime": 1743753174247,
"data": {
"orderInfoResultList": [{
"accountId": "590105411156181178",
"symbol": "WXTUSDT_SPBL",
"orderId": "602941812964852154",
"clientOrderId": "202504040742105191743752530280",
"price": "100.000000",
"quantity": "10",
"orderType": "limit",
"side": "sell",
"status": "open",
"latestFillPrice": "0",
"maxFillPrice": "0",
"minFillPrice": "0",
"fillQuantity": "0",
"fillTotalAmount": "0",
"cTime": "1743752530328",
"uTime": "1743752530334"
}],
"nextPage": null,
"totals": null
}
}
取得歷史委託列表
HTTP 請求 取得歷史委託列表
- POST
/api/v2/trade/history
限速規則:10 次/ 1s
請求參數
參數名 | 參數類型 | 是否必須 | 描述 |
---|---|---|---|
symbol | String | 是 | 幣對,詳見:/products |
after | Long | 否 | 開始時間 |
before | Long | 否 | 結束時間 |
pageIndex | Integer | 否 | 頁碼,從0開始 (默認值: 0) |
pageSize | Integer | 否 | 頁大小,必須大於0且小於等於100 (默認值: 10) |
請求範例
curl -X POST "https://api-spot.weex.com/api/v2/trade/history" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "WXTUSDT_SPBL"}'
傳回參數
欄位名 | 類型 | 欄位說明 |
---|---|---|
accountId | String | 帳戶 ID |
symbol | String | 交易對 |
orderId | String | 訂單 ID |
clientOrderId | String | 客戶端訂單ID |
price | String | 委託價格 |
quantity | String | 委託數量 |
orderType | String | 訂單類型 |
side | String | 訂單方向 |
status | String | 訂單狀態 |
latestFillPrice | String | 當前委託單最新成交價格 |
maxFillPrice | String | 當前委託單最高成交價格 |
minFillPrice | String | 當前委託單最低成交價格 |
fillQuantity | String | 成交數量 |
fillTotalAmount | String | 已成交總額 |
cTime | String | 創建時間 |
uTime | String | 更新時間 |
傳回範例
{
"code": "00000",
"msg": "success",
"requestTime": 1743755234949,
"data": {
"orderInfoResultList": [{
"accountId": "590105411156181178",
"symbol": "WXTUSDT_SPBL",
"orderId": "602941812964852154",
"clientOrderId": "202504040742105191743752530280",
"price": "100.000000",
"quantity": "10",
"orderType": "limit",
"side": "sell",
"status": "open",
"latestFillPrice": "0",
"maxFillPrice": "0",
"minFillPrice": "0",
"fillQuantity": "0",
"fillTotalAmount": "0",
"cTime": "1743752530328",
"uTime": "1743752530334"
}],
"nextPage": true,
"totals": 0
}
}
獲取成交明細
HTTP请求 获取成交的历史明细
- POST
/api/v2/trade/fills
限速规则:10 次/ 1s
請求參數
參數名 | 參數類型 | 是否必須 | 描述 |
---|---|---|---|
symbol | String | 是 | 幣對,詳見:/products |
orderId | Long | 否 | 訂單 id |
after | Long | 否 | 開始時間 |
before | Long | 否 | 結束時間 |
pageIndex | Integer | 否 | 頁碼,從0開始 (默認值: 0) |
pageSize | Integer | 否 | 頁大小,必須大於0且小於等於100 (默認值: 10) |
請求範例
curl -X POST "https://api-spot.weex.com/api/v2/trade/fills" \
-H "ACCESS-KEY:" \
-H "ACCESS-SIGN:" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"symbol": "WXTUSDT_SPBL"}'
傳回參數
欄位名 | 類型 | 欄位說明 |
---|---|---|
accountId | String | 帳戶 ID |
symbol | String | 交易對 |
baseCoin | String | 交易幣種 |
quoteCoin | String | 計價幣種 |
orderId | String | 訂單 ID |
fillId | String | 成交 ID |
orderType | String | 訂單類型 |
side | String | 訂單方向 |
fillPrice | String | 成交價格 |
fillQuantity | String | 成交數量 |
fillTotalAmount | String | 已成交總額 |
fees | String | 手續費 |
cTime | String | 創建時間 |
傳回範例
{
"code": "00000",
"msg": "success",
"requestTime": 1743750228305,
"data": {
"fillsOrderResultList": [{
"accountId": "590105411156181178",
"symbol": "WXTUSDT_SPBL",
"baseCoin": "WXT",
"quoteCoin": "USDT",
"orderId": "602929507946463674",
"fillId": "602929507971629498",
"orderType": "",
"side": "buy",
"fillPrice": "",
"fillQuantity": "10",
"fillTotalAmount": "0.10476",
"fees": "0.01",
"cTime": "1743749596589"
}],
"nextPage": false,
"totals": 0
}
}
WEEX唯客官網:www.weex.com
你也可以在 CMC| Coingecko|非小號|X(Twitter)|Youtube|Facebook|Linkedin|微博 上關注我们,第一时间获取更多投資導航和福利活動!了解平台幣 WXT 最新資訊請訪問 WXT專區
在線諮詢:
WEEX唯客中文交流群:https://t.me/weex_group
WEEX唯客英文交流群:https://t.me/Weex_Global