Batch Cancel orders

method url:/api/third/order/batchCancelEntrust

request type:POST

content type:application/x-www-form-urlencoded

need sign:true

detail: cancel one by one till fail then break

request param:

response param:

example:

1 Set request parameters, query params:

entrustIds:180554928,180554929,180554930
timestamp:1725865024825

2 Build the Parameters

entrustIds=180554928,180554929,180554930&timestamp=1725865024825

3 Sign the parameter string format, result:

0xb431bdc9b2bdd65c37b2eb2dcb337f7f31118933e8a4bdf0dd85825163c98cb36e3eb0fb180fc671388e7225617f1f45b32a7717e12a40fa2c9f3f3893e75a351c

4 Assemble the complete request

curl --location --request POST 'https://zk-test.satori.finance/api/third/order/batchCancelEntrust?entrustIds=180554928,180554929,180554930&timestamp=1725865024825' \
--header 'APIKEY: st_fq6cvRF4fr5tnKiZfrIntRnLfrwxcXjcfr1y8FR7' \
--header 'X-SAPI-SIGN-TYPE: 2' \
--header 'signature: 0xb431bdc9b2bdd65c37b2eb2dcb337f7f31118933e8a4bdf0dd85825163c98cb36e3eb0fb180fc671388e7225617f1f45b32a7717e12a40fa2c9f3f3893e75a351c' \
--header 'Content-Type: text/plain' \
--data ''

5 Return results

{
    "error": false,
    "code": 200,
    "msg": "SUCCESS",
    "data": true,
    "sid": "1809700645462351873"
}

Error Code:

Last updated