Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_calculate_position_size

Calculate the optimal futures contract size based on risk amount, entry price, stop loss, and leverage, ensuring each trade aligns with your risk management strategy.

Instructions

🎯 仓位大小计算器 - 科学风控开仓指南

🔍 功能说明: 根据风险管理参数科学计算合约开仓数量。输入愿承担的风险金额、入场价格、止损价格和杠杆倍数,自动计算最适合的仓位大小,确保单笔交易风险可控,是量化交易和专业风控的核心工具。

⚠️ 重要提醒: • 风险控制:建议单笔风险不超过账户资金的1-3% • 杠杆影响:高杠杆放大收益的同时也放大风险 • 止损设置:止损价应基于技术分析设置,不可过于接近入场价 • 最小下单:计算结果会考虑交易对的最小下单量限制

🎯 适用场景: • 专业交易员制定科学的仓位管理策略 • 量化系统自动化风险控制和资金管理 • 新手学习如何设置合理的仓位大小 • 风控系统预设最大仓位和风险敞口

🧮 输出示例: 计算完成后将返回:

🎯 合约仓位计算结果

📊 输入参数:
交易合约:BTCUSDT 永续合约
风险金额:200.00 USDT (账户2%风险)
入场价格:43,250.00 USDT
止损价格:41,750.00 USDT
杠杆倍数:10x

📐 风险计算:
单价风险:1,500.00 USDT (3.47%价差)
实际杠杆风险:150.00 USDT/BTC
每BTC最大风险:150.00 USDT

💰 仓位建议:
推荐开仓:1.33333 BTC
实际风险:200.00 USDT (100%风险使用)
所需保证金:5,766.67 USDT
保证金占用:13.3%

⚖️ 风险分析:
风险使用率:100.00% (满风险)
价格容忍:-3.47% (止损空间)
杠杆效应:10倍放大
强平距离:比止损价更远(安全)

💡 交易建议:
✅ 推荐仓位大小:1.333 BTC
✅ 止损设置合理:有足够缓冲空间  
✅ 风险控制到位:符合2%风险原则
⚠️ 杠杆较高:注意市场波动风险

🎯 执行要点:
1. 严格按计算结果开仓,不可随意加大仓位
2. 开仓后立即设置止损单在41,750.00
3. 预留额外保证金应对价格波动
4. 盈利后可考虑移动止损保护利润

💪 风控提醒:
仓位大小已优化,但务必严格执行止损纪律。
市场异常波动时应考虑提前止损或减仓。
不建议在重要数据发布前后开新仓位。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes合约交易对,如"BTCUSDT"。用于获取合约的最小下单量和精度要求。
leverageYes杠杆倍数,范围1-125。杠杆越高,需要的保证金越少,但风险也越大。
entryPriceYes预计入场价格(USDT)。可以是当前价格或计划的入场价格。
riskAmountYes愿意承担的最大风险金额(USDT)。例如:如果账户有1000 USDT,愿意承担2%风险,则填20。
stopLossPriceYes止损价格(USDT)。用于计算每张合约的风险金额。止损价格应该与入场价格有合理差距。
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 that the calculation respects minimum order quantity, provides a detailed output example showing risk calculations, margin requirements, and trading suggestions. It also includes warnings about leverage and stop-loss behavior. It doesn't explicitly state that no order is placed, but the calculator nature is clear, and the rich output example adds significant transparency.

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

Conciseness2/5

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

The description is excessively long and padded with generic trading advice (e.g., '盈利后可考虑移动止损保护利润', '不建议在重要数据发布前后开新仓位'). While it is structured with headings and front-loaded with the purpose, much of the content is not essential for tool invocation, making it verbose rather than concise.

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 description includes a comprehensive output example that compensates for the lack of an output schema, illustrating the return format and calculations. It also covers usage context, risk warnings, and execution tips. It is complete enough for an agent to understand the tool's behavior and expected results, though it could be more explicit about edge cases or error handling, so a 4 is appropriate.

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 simply lists the input parameters in the output example (risk amount, entry price, stop loss, leverage) but adds no additional meaning beyond what's already in the schema. It reinforces but doesn't expand parameter semantics, warranting a baseline score.

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?

Description clearly states it calculates contract position size based on risk parameters (risk amount, entry price, stop loss, leverage). It specifies '仓位大小计算器' (position size calculator) and explains it computes the optimal opening quantity, distinguishing it as a risk-management calculator. While a sibling 'get_optimal_trade_size' exists, the description's focus on stop-loss-based risk calculation gives it a distinct identity.

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 '适用场景' (applicable scenarios) section explicitly lists when to use the tool: for professional trading strategies, quant risk control, beginners learning position sizing, and risk systems setting max positions. This provides clear usage context, though it doesn't explicitly mention alternatives or when not to use it, stopping short of a 5.

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