Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_futures_cancel_all_orders

Cancel all open orders for a specified futures contract, freeing up margin and preventing unintended executions. Use during market volatility or when resetting your trading strategy.

Instructions

【合约批量撤单】一键取消指定合约的所有委托订单

📋 功能说明

  • 批量取消NEW(新建)和PARTIALLY_FILLED(部分成交)状态的订单

  • 一次性清除指定合约的所有未成交委托

  • 返回每个订单的撤销结果和保证金释放信息

  • 操作不可逆转,请谨慎使用

⚠️ 危险操作警告

  • 这是一个危险操作,会撤销该合约的所有挂单

  • 撤销后订单无法恢复,可能影响交易策略

  • 建议在市场波动剧烈时或紧急情况下使用

  • 操作前请确认合约名称和当前委托情况

🎯 适用场景

  • 市场急剧变化需要快速清仓

  • 策略失效需要重新布局

  • 系统维护前清理挂单

  • 避免不必要的成交风险

📊 输出示例 批量撤销后将返回:

🚨 合约批量撤单操作完成

📊 执行概况
合约类型:BTCUSDT 永续合约
发现订单:6 个委托订单
成功撤销:5 个订单 ✅
撤销失败:1 个订单 ❌
操作成功率:83.3%

📋 详细执行结果

✅ 订单 #123456789 [撤销成功]
释放保证金:4.5 USDT
处理时间:2022-01-01 10:30:01

✅ 订单 #123456790 [撤销成功]
释放保证金:5.2 USDT
处理时间:2022-01-01 10:30:01

❌ 订单 #123456791 [撤销失败]
失败原因:订单已完全成交,无法撤销
处理时间:2022-01-01 10:30:02

💰 保证金变动汇总
总释放金额:24.7 USDT
可用余额增加:+24.7 USDT
占用保证金清零:-24.7 USDT

⚠️ 重要提醒
所有未成交的合约委托订单已成功清理!
占用的保证金已全部释放到可用余额。
现在可以重新制定交易策略或下新单。

🎯 后续建议
- 重新评估市场情况和持仓风险
- 调整委托价格策略和杠杆设置
- 考虑分批建仓或逐步建仓方式

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes必填。要取消订单的合约,如"BTCUSDT"。将取消该合约的所有委托订单。请谨慎操作。
Behavior5/5

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

With no annotations provided, the description carries the full burden and does an excellent job: it discloses that only NEW and PARTIALLY_FILLED orders are canceled, that the operation is irreversible, that it returns per-order results and margin release info, and that failures can occur. The detailed output example further clarifies behavior.

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 a clear one-liner, then organized into sections for function, danger warnings, applicable scenarios, and output examples. It is somewhat long due to the extensive sample output, but the structure and repeated warnings are appropriate for a destructive operation.

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?

For a one-parameter cancel-all operation with no annotations and no output schema, the description is fully self-sufficient. It covers what the tool does, which order types are affected, irreversibility, applicable scenarios, and provides a detailed output example that substitutes for a formal output schema.

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 already describes the symbol parameter as required and explains that it specifies the contract whose all orders will be canceled. With 100% schema description coverage, the description adds no new parameter-level details beyond restating 'specified contract', hitting the baseline of 3.

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 opens with '一键取消指定合约的所有委托订单' (one-click cancel all orders for a specified contract), which is a specific verb+resource+scope statement. It clearly distinguishes this from the sibling binance_futures_cancel_order by targeting all orders for a contract rather than a single order.

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 lists concrete applicable scenarios (rapid market shifts, strategy changes, system maintenance, avoiding risk) and warns that the operation is dangerous. However, it does not explicitly mention alternatives like binance_futures_cancel_order for canceling a single order, so it stops short of full when-not/alternative 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