Cancel order

流量控制: 5 每 秒

摘要


HTTP 方法

DELETE

访问路径

/api/v3/order

功能

Cancel order using order hash or client-side ID.

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"
X-API-SIG string EDDSA 签名信息 "0xeb14773e8a07d19bc4fe56e36d041dcb
0026bf21e05c7652f7e92160deaf5ea9
c4fe56e34773e86d041dcbeb1a07d19b
002652f7e92160deaf5e6bf21e05c7a9
002652f7e92160deaf5e6bf21e05c7a9
eb14773e8a07d19bc4fe56e36d041dcb"

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID 1
orderHash string Order HASH "133754509012
921794171549
748495717930
699115173547
203971250276
332426804700
75859"
clientOrderId string The unique order ID of the client "202003180000
00001010"

请求示例

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

响应字段

字段 类型 必须 说明 举例
hash string Order hash of submit order response "133754509012
921794171549
748495717930
699115173547
203971250276
332426804700
75859"
clientOrderId string The clientOrderId of the submitted order "client_order
_id"
status string Order status of submit order response
取值范围 : ['processing', 'processed', 'cancelling', 'cancelled', 'expired', 'failed']
"cancelled"
isIdempotent boolean Idempotent of submit order response, submit same order again when order was UNKNOWN or WAIT_FREEZE_BALANCE in relayer, idempotent will be true
取值范围 : [True, False]
"false"

响应示例

{
  "hash" : "13375450901292179417154974849571793069911517354720397125027633242680470075859",
  "clientOrderId" : "client_order_id",
  "status" : "cancelled",
  "isIdempotent" : false
}

状态码

状态码 描述
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 ""