获取 DEX 限价单取消订单 calldata。
GET https://www.okx.com/api/v5/dex/aggregator/limit-order/cancel/calldata
参数 | 类型 | 必传 | 描述 |
---|---|---|---|
orderHash | String | 是 | 订单 hash |
参数 | 类型 | 描述 |
---|---|---|
data | string | 取消上链 calldata 数据 |
curl --location --request GET 'https://www.okx.com/api/v5/dex/aggregator/limit-order/cancel/calldata?orderhash=xxxxxx' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'
{
"code": "0",
"data": "0xe2cf089e0000000000000000000000000000000000000000000000000000018c43b2a04000000000000000000000000053e0bca35ec356bd5dddfebbd1fc0fd03fabad390000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000c171a1caa36b1c9e2c56fe71a24ceac127ff5ae4000000000000000000000000c171a1caa36b1c9e2c56fe71a24ceac127ff5ae400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d15c50616925b800000000000000000000000000000000000000000000000000000000002160ec00000000000000000000000000000000000000000000000000000000002160ec00000000000000000000000000000000000000000000000000000018c524f31b80000000000000000000000000000000000000000000000000000000000010001",
"msg": ""
}