Cancel orders

Rate limit: 3 every second

API Overview


HTTP method

DELETE

Path

/api/v2/orders

Summary

Cancel orders using order hash or client-side ID. If no parameters are provided, all pending all orders will be cancelled.

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 N Order HASH "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"
clientOrderId string N The unique order ID of the client "20200318000000001010"

Request example

HTTP
CURL
DELETE https://api.loopring.io/api/v2/orders?accountId=1&orderHash=13375450901292179417154974849571793069911517354720397125027633242680470075859&clientOrderId=20200318000000001010 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\?accountId\=1\&orderHash\=13375450901292179417154974849571793069911517354720397125027633242680470075859\&clientOrderId\=20200318000000001010

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data boolean N Cancel orders response "true"

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : true
}

Status code

Value Description
100000 Unknown error
104001 Empty ApiKey
102117 No orders to cancel
102118 Failed to cancel orders, please try again later
104002 Invalid ApiKey
104003 Invalid Account ID

results matching ""

    No results matching ""