Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_spot_cancel_all_orders

Cancel all open spot orders for a trading pair at once. Respond to market shifts or strategy changes by clearing pending orders and releasing frozen funds.

Instructions

【现货批量撤单】一键取消指定交易对的所有委托订单

📋 功能说明

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

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

  • 返回每个订单的撤销结果和统计信息

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

⚠️ 危险操作警告

  • 这是一个危险操作,会撤销该交易对的所有挂单

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

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

  • 操作前请确认交易对和当前委托情况

🎯 适用场景

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

  • 策略失效需要重新布局

  • 系统维护前清理挂单

  • 避免不必要的成交风险

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

🚨 批量撤单操作完成

📊 执行概况
交易对:BTCUSDT (BTC/USDT现货)
发现订单:5 个委托订单
成功撤销:4 个订单 ✅
撤销失败:1 个订单 ❌
操作成功率:80%

📋 详细执行结果

✅ 订单 #12345678 [撤销成功]
释放资金:45 USDT
处理时间:2022-01-01 10:30:01

✅ 订单 #12345679 [撤销成功]
释放资金:46 USDT
处理时间:2022-01-01 10:30:01

✅ 订单 #12345680 [撤销成功]
释放资金:47 USDT
处理时间:2022-01-01 10:30:02

✅ 订单 #12345681 [撤销成功]
释放资金:42 USDT
处理时间:2022-01-01 10:30:02

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

💰 资金变动汇总
总释放金额:180 USDT
可用余额增加:+180 USDT
冻结资金清零:-180 USDT

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

🎯 后续建议
- 重新评估市场情况
- 调整委托价格策略
- 考虑分批建仓方式

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes交易对符号(必填) • 将取消该交易对的所有未成交订单 • 格式:基础资产+计价资产,如BTCUSDT、ETHUSDT • 区分大小写,必须精确匹配 • 建议先查询委托列表确认要撤销的订单 ⚠️ **危险操作提醒**: - 操作不可逆,请三思后行 - 建议先使用binance_spot_open_orders查看委托 - 确认交易对无误后再执行 💡 安全建议: - 紧急情况下使用 - 操作前备份重要订单信息
Behavior5/5

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

With no annotations provided, the description fully carries the burden. It discloses irreversibility, the specific order states affected, unfreezing of funds, and per-order success/failure outcomes. The danger warning and output example make side effects explicit.

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 (function, danger, use cases, output example) and front-loaded purpose. It is long, but the detail is justified for a dangerous irreversible operation. The output example is extensive but could be slightly condensed without loss.

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?

Despite no output schema, the description provides a comprehensive output example covering success/failure counts, order IDs, released funds, and suggestions. It also covers prerequisites, effects, and alternative verification. This makes the tool's behavior fully understandable.

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 for the only parameter (symbol) is 100%, including format, case-sensitivity, and warnings. The main description adds little beyond the schema itself (only an example in the output section). Baseline 3 is appropriate since the schema does the heavy lifting.

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 it cancels all open orders for a specified trading pair in one click, specifying order states (NEW, PARTIALLY_FILLED). It distinguishes from sibling tools like single-order cancel (binance_spot_cancel_order) and futures cancel-all (binance_futures_cancel_all_orders).

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

Usage Guidelines5/5

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

Provides explicit applicable scenarios (e.g., market volatility, strategy failure) and warns against misuse. It recommends checking open orders first with binance_spot_open_orders, directly guiding when to use vs. alternatives.

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