Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_spot_cancel_order

Cancel an open spot order on Binance by symbol and order ID. Releases frozen funds immediately and prevents unintended fills.

Instructions

【现货撤单】取消现货市场的指定委托订单

📋 功能说明

  • 撤销状态为NEW(新建)或PARTIALLY_FILLED(部分成交)的订单

  • 立即生效,撤销后的订单无法恢复

  • 返回被撤销订单的详细信息和执行状态

⚠️ 重要提醒

  • 只能撤销未完全成交的订单

  • 已成交(FILLED)或已撤销(CANCELED)的订单无法再次撤销

  • 撤销后冻结的余额会立即释放到可用余额

🎯 适用场景

  • 市场价格变动时主动撤销不合适的挂单

  • 策略调整时清理历史委托

  • 风险管理中及时止损

📊 输出示例 成功撤销后将返回:

✅ 订单撤销成功

📋 订单详情
订单编号:#12345678
交易对:BTCUSDT (BTC/USDT现货)
原始数量:0.001 BTC
委托价格:45,000 USDT
最终状态:已撤销

📈 成交情况
已成交:0 BTC (完全未成交)
撤销数量:0.001 BTC
撤销时间:2022-01-01 08:15:30

💰 资金释放
释放金额:45 USDT
手续费:0 USDT (未成交)
可用余额:增加 45 USDT

✨ 操作结果
订单已成功从交易所撤销,所有冻结资金已释放到可用余额。
可以重新下单或调整交易策略。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes交易对符号(必填) • 必须与下单时的交易对完全一致 • 格式:基础资产+计价资产,如BTCUSDT、ETHUSDT • 区分大小写,不能有任何拼写错误 • 可通过binance_spot_open_orders查看当前委托 💡 注意事项: - 交易对拼写必须精确匹配 - 建议先查询委托订单确认交易对
orderIdYes订单ID(必填) • Binance系统生成的唯一订单标识符 • 可从以下途径获取: - 下单时返回的orderId - binance_spot_open_orders查询结果 - binance_spot_order_history历史记录 • 这是一个长整数,范围很大 💡 获取方式: - 优先使用下单返回的orderId - 批量撤销可先查询委托订单列表
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses that only NEW/PARTIALLY_FILLED orders can be canceled, cancellation is immediate and irreversible, frozen balance is released, and the response includes order details and execution status. This goes well beyond the annotations and gives the agent a thorough understanding of side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the purpose and uses clear sections with emojis, making it scannable. However, it is verbose, with some redundant statements (e.g., '只能撤销未完全成交的订单' and '已成交或已撤销的订单无法再次撤销') and a lengthy output example that repeats details. Despite this, the structure aids comprehension and the output example is valuable given no output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given only two parameters, full schema coverage, no annotations, and no output schema, the description compensates well by explaining the order states that are cancelable, the side effects, applicable scenarios, and a detailed output example. There are no significant gaps in understanding what the tool does, when to use it, or what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema covers 100% of the parameters (symbol and orderId) with detailed explanations, examples, and notes. The description itself does not add any parameter-level meaning beyond what is already in the schema, so the baseline score of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool cancels a specified order in the spot market using the verb '取消' (cancel) and identifies the resource as '现货市场的指定委托订单' (a specified order in the spot market). It distinguishes from siblings like 'binance_spot_cancel_all_orders' by specifying a single order, and from futures tools via the '现货' (spot) qualifier.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear applicable scenarios (price changes, strategy adjustment, risk management) and explicitly excludes orders that are fully filled or already canceled, noting only NEW and PARTIALLY_FILLED orders can be canceled. However, it does not mention when to use the alternative 'binance_spot_cancel_all_orders' or the futures counterpart, so it lacks explicit when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kydlikebtc/binance-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server