Cancel multiple orders by hash

Rate limit: 3 every second

API Overview


HTTP method

DELETE

Path

/api/v2/orders/byHash

Summary

Cancel up to 10 orders by order hash.

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"
X-API-SIG string Y Signature "138345244293157165270722452892
010987433674489288289416943333
00773464291931668,192524381644
249809013234960675797674572982
626096331826549685003177960107
94338,129650216991857917204601
962488677667247381368354153200
8712357317204831986826"

Request parameters

Field Type Required Description Example
accountId integer Y Account ID 1
orderHash string Y Hash of order to be canceled,separate multiple hashes with commas. "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859,13
37545090129217941715
49748495717930699115
17354720397125027633
242680470075860"

Request example

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

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data List[CancelOrderResult] Y Results of batch order cancellation. /

Response example

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

Status code

Value Description
100000 Unknown error
100001 Invalid argument
104209 Partial batch operation failed

Model


CancelOrderResult

result for order cancellation.

Field Type Required Description Example
id string Y Hash or clientOrderId of order cancelled. "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
result boolean Y Order cancellation result. "true"
error ResultInfo N Error for cancel order failure. /

results matching ""

    No results matching ""