Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_futures_close_position

Close Binance futures positions at market price. Automatically handles direction and quantity for one-way or hedge mode, freeing margin; ideal for stop-loss, exits, and position cleanup.

Instructions

【合约平仓】市价一键平仓指定合约的所有持仓

📋 功能说明

  • 市价立即平仓指定合约的持仓

  • 自动计算平仓方向和数量,无需手动计算

  • 支持单向和双向持仓模式

  • 立即释放所有占用的保证金

⚠️ 重要提醒

  • 这是一个不可逆转的操作,请确认后操作

  • 平仓前请确认当前持仓信息和盈亏情况

  • 市价平仓可能存在滑点,影响最终成交价格

  • 建议在流动性好的时间段操作

🎯 适用场景

  • 紧急情况下快速清仓止损

  • 市场反转时及时退出持仓

  • 策略调整时清理现有持仓

  • 风险管理和资金重新配置

📊 输出示例 平仓成功后将返回:

✅ 合约平仓操作成功

📋 平仓详情
合约类型:BTCUSDT 永续合约
平仓方式:市价平仓
平仓方向:平多头持仓
平仓数量:0.005 BTC
平仓时间:2022-01-01 10:45:15

📈 成交情况
平均成交价:45,800 USDT
成交金额:229 USDT
手续费:0.458 USDT (0.2%)
滑点成本:-2 USDT (-0.44%)

💰 持仓盈亏
入场平均价:44,500 USDT
平仓平均价:45,800 USDT
价差盈亏:+6.5 USDT (+2.92%)
实现盈亏:+6.042 USDT (减去手续费)
持仓时间:2天 3小时

💳 保证金变化
释放保证金:22.9 USDT
可用余额增加:+28.942 USDT
账户总余额:1,028.942 USDT

✨ 操作结果
合约持仓已成功平仓,盈亏已实现!
所有保证金已释放,资金可用于新的交易。

💡 后续建议
- 总结本次交易经验和盈亏情况
- 评估市场环境和下一步策略
- 考虑资金管理和风险控制

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes必填。要平仓的合约,如"BTCUSDT"。将平掉该合约的持仓。
positionSideNo指定平仓的方向:BOTH=所有持仓(默认),LONG=只平多头持仓,SHORT=只平空头持仓。用于双向持仓模式的精确控制。
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses irreversibility, market slippage risk, margin release, and supports both one-way and two-way position modes. It lacks explicit permission/authorization requirements but covers the key operational consequences well.

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

Conciseness3/5

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

The description is well-structured with emoji section headers, but is quite long, especially the extensive output example. It is front-loaded with the core function and warnings, but the length borders on verbose for a tool that could be summarized more succinctly.

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?

Given there is no output schema, the description compensates with a detailed output example covering fill details, fees, PnL, margin changes, and suggestions. It covers use cases, warnings, and behavior, but could mention error cases or prerequisites like account permissions.

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 description coverage is 100%, so the baseline is 3. The description adds useful context about auto-calculating direction/quantity and supporting both position modes, which aligns with the schema parameters. But it does not add significant extra meaning beyond the schema's already clear descriptions.

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 performs market-price one-click closing of all positions for a specified contract, with automatic direction and quantity calculation. It distinguishes itself from sibling tools like place_order or cancel_order by focusing specifically on closing existing positions.

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?

Explicit '适用场景' section lists when to use (emergency stop loss, market reversal, strategy adjustment, risk management). It does not explicitly state when NOT to use it or alternatives, but the scenarios are concrete and actionable.

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