撤单
build_cancel_orders撤销未成交的委托(限价单、止盈止损,以及 status=expired 的过期市价单),一次可撤多张;保证金和剩余执行费退回钱包。订单 key 从 get_account 的 orders 获取。发送时按 step 里的 gasLimitHint 设 gas 上限。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"keys": "<keys>"
},
"name": "build_cancel_orders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | 要撤销的订单 key 列表(0x 开头的 64 位十六进制,从 get_account 的 orders 获取) | |
| agent | No | agent 专用通道:填 agent 自己的钱包地址后,交易由 agent 用自己的私钥直接签名发送,不用用户逐笔确认(用户需先用 build_agent_authorize 授权这个地址)。不填则由用户钱包签名 | |
| account | Yes | 用户钱包地址(交易的签名人和收款人) |