根据订单HASH批量取消订单

流量控制: 3 每 秒

摘要


HTTP 方法

DELETE

访问路径

/api/v2/orders/byHash

功能

根据订单HASH,多个订单Hash以逗号分隔开,最多一次10个。

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"
X-API-SIG string 签名信息 "138345244293157165270722452892
010987433674489288289416943333
00773464291931668,192524381644
249809013234960675797674572982
626096331826549685003177960107
94338,129650216991857917204601
962488677667247381368354153200
8712357317204831986826"

请求参数

字段 类型 必须 说明 举例
accountId integer 账户ID 1
orderHash string 要取消的订单HASH,多个HASH以","分隔 "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859,13
37545090129217941715
49748495717930699115
17354720397125027633
242680470075860"

请求示例

HTTP
CURL
DELETE https://api.loopring.io/api/v2/orders/byHash?accountId=1&orderHash=13375450901292179417154974849571793069911517354720397125027633242680470075859,13375450901292179417154974849571793069911517354720397125027633242680470075860 HTTP/1.1
Host: api.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
X-API-SIG: dkkfinfasdf
curl -X DELETE -H "X-API-KEY:sra1aavfa" -H "X-API-SIG:dkkfinfasdf" https://api.loopring.io/api/v2/orders/byHash\?accountId\=1\&orderHash\=13375450901292179417154974849571793069911517354720397125027633242680470075859,13375450901292179417154974849571793069911517354720397125027633242680470075860

响应字段

字段 类型 必须 说明 举例
resultInfo ResultInfo API返回信息 /
data List[CancelOrderResult] 批量取消订单的详细结果 /

响应示例

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : [
        {
            "id" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
            "result" : true,
            "error" : {
                "code" : 0,
                "message" : "SUCCESS"
            }
        }
    ]
}

状态码

状态码 描述
100000 未知错误
100001 参数非法
104209 批量操作部分失败

模型


CancelOrderResult

单个订单取消的结果

字段 类型 必须 说明 举例
id string 要取消订单的HASH或者ID "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
result boolean 订单取消的结果 "true"
error ResultInfo 订单取消失败的错误 /

results matching ""

    No results matching ""