Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_futures_cancel_order

Cancel an open or partially filled Binance futures order by specifying its symbol and orderId, releasing locked margin for other trades.

Instructions

【合约撤单】取消合约市场的指定委托订单

📋 功能说明

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

  • 立即释放占用的保证金到可用余额

  • 返回被撤销订单的详细信息和保证金变动

⚠️ 重要提醒

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

  • 已成交或已撤销的订单无法再次撤销

  • 撤销后保证金立即释放,可用于新的交易

🎯 适用场景

  • 市场走势与预期不符时及时撤单

  • 调整交易策略清理旧委托

  • 紧急风险控制撤销危险订单

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

✅ 合约订单撤销成功

📋 订单详情
订单编号:#123456789
合约类型:BTCUSDT 永续合约
原始数量:0.001 BTC
委托价格:45,000 USDT
最终状态:已撤销

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

💰 保证金释放
释放保证金:4.5 USDT
可用余额:增加 4.5 USDT
持仓保证金:无变化

✨ 操作结果
合约订单已成功从交易所撤销,占用的保证金已释放。
现在可以重新制定交易策略或调整订单价格。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes合约交易对(必填) • 必须与下单时的合约完全一致 • 支持USDT永续合约和币本位合约 • 区分大小写,不能有任何拼写错误 • 可通过binance_futures_open_orders查看当前委托 💡 注意事项: - 合约名称必须精确匹配 - 建议先查询委托订单确认合约名称
orderIdYes订单ID(必填) • Binance系统生成的唯一订单标识符 • 可从以下途径获取: - 合约下单时返回的orderId - binance_futures_open_orders查询结果 - binance_futures_order_history历史记录 • 这是一个长整数,范围很大 💡 获取方式: - 优先使用下单返回的orderId - 批量撤销可先查询委托订单列表
Behavior4/5

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

With no annotations, the description carries the full burden of disclosing side effects. It clearly states that only NEW or PARTIALLY_FILLED orders are cancellable, that margin is released immediately, and that filled or already-cancelled orders cannot be cancelled. It also provides a detailed output example showing the response structure. It could mention error cases or rate limits, but overall it is transparent.

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 well-structured with clear sections for features, warnings, scenarios, and a sample response. It is somewhat long, but each section contributes valuable information without redundancy. The emoji and headers improve readability.

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

Completeness4/5

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

The tool has no output schema, but the description compensates with a detailed success example. It explains cancellation conditions and margin release, and includes usage scenarios. It lacks explicit error handling or rate-limit information, but for a 2-parameter mutation tool, the description is largely complete.

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?

Schema coverage is 100% for both parameters, with schema descriptions already explaining the need for exact symbol matching and how to obtain orderId. The tool description itself adds no additional parameter semantics beyond what the schema provides, so the baseline score of 3 is appropriate.

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 explicitly states it cancels a specified contract (futures) order: '取消合约市场的指定委托订单'. It uses a specific verb (取消) and resource (合约订单), clearly distinguishing from sibling tools like cancel_all_orders by emphasizing '指定' (specified).

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 includes an '适用场景' (applicable scenarios) section listing concrete use cases such as market shifts, strategy adjustments, and risk control. It also references an alternative for viewing orders (binance_futures_open_orders) in the schema. However, it does not explicitly compare with cancel_all_orders or spot cancel, leaving some room for improvement.

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