高頻交易同步批量下單

此接口請求參數同"批量下單"

該接口和"批量下單"的不同點在於:此接口會同步返回本次下單撮合完成後的訂單信息

對延遲要求較高,請選“批量下單”接口。對返回數據完整性有要求,請選擇該接口

HTTP請求

POST /api/v1/hf/orders/multi/sync

請求示例

POST /api/v1/hf/orders/multi/sync

//request
{
              "orderList": [
                  {
                      "clientOid": "3d07008668054da6b3cb12e432c2b13a",
                      "side": "buy",
                      "type": "limit",
                      "price": "0.01",
                      "size": "1",
                      "symbol": "ETH-USDT"
                  },
                  {
                      "clientOid": "37245dbe6e134b5c97732bfb36cd4a9d",
                      "side": "buy",
                      "type": "limit",
                      "price": "0.01",
                      "size": "1",
                      "symbol": "ETH-USDT"
                  }
              ]
          }
//response
 {
              "success": true,
              "code": "200",
              "msg": "success",
              "retry": false,
              "data": [
                  {
                      "orderId": "641d67ea162d47000160bfb8",
					  "clientOid": "3d07008668054da6b3cb12e432c2b13a"
                      "orderTime": 1679648746796,
                      "originSize": "1",
                      "dealSize": "0",
                      "remainSize": "1",
                      "canceledSize": "0",
                      "status": "open",
                      "matchTime": 1679648746443,
                      "success": true
                  },
                  {
                      "orderId": "641d67eb162d47000160bfc0",
					  "clientOid": "37245dbe6e134b5c97732bfb36cd4a9d",
                      "orderTime": 1679648747369,
                      "originSize": "1",
                      "dealSize": "0",
                      "remainSize": "1",
                      "canceledSize": "0",
                      "status": "open",
                      "matchTime": 1679648746644,
                      "success": true
                  }
              ]
          }
API權限

此接口需要幣幣交易權限

請求URL

此接口支持現貨URL

頻率限制

現貨類權重:1

請求參數

此接口請求參數同"高頻交易批量下單",最大支持20個訂單

返回值
字段 含義
orderId 訂單id
clientOid 自定义订单Id
orderTime 訂單時間
originSize 訂單原始數量
dealSize 已成交數量
remainSize 剩餘數量
canceledSize 累計取消數量
status 訂單狀態 open:在買賣盤 done:訂單已經完結
matchTime 撮合時間
success 是否下單成功