DEX API

取消限价单 calldata#

获取 DEX 限价单取消订单 calldata。

请求地址#

GET https://www.okx.com/api/v5/dex/aggregator/limit-order/cancel/calldata

请求参数#

参数类型必传描述
orderHashString订单 hash

响应参数#

参数类型描述
datastring取消上链 calldata 数据

请求示例#

shell
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'

响应示例#

200
{
        "code": "0",
        "data": "0xe2cf089e0000000000000000000000000000000000000000000000000000018c43b2a04000000000000000000000000053e0bca35ec356bd5dddfebbd1fc0fd03fabad390000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000c171a1caa36b1c9e2c56fe71a24ceac127ff5ae4000000000000000000000000c171a1caa36b1c9e2c56fe71a24ceac127ff5ae400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d15c50616925b800000000000000000000000000000000000000000000000000000000002160ec00000000000000000000000000000000000000000000000000000000002160ec00000000000000000000000000000000000000000000000000000018c524f31b80000000000000000000000000000000000000000000000000000000000010001",
        "msg": ""
      }