Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_calculate_funding_cost

Calculate the funding fee for USDT perpetual futures based on position size, direction, current rate, and holding period to estimate costs or income.

Instructions

💸 资金费用计算器 - 持仓成本精确测算

🔍 功能说明: 计算USDT永续合约的预计资金费用成本。基于当前持仓方向、仓位大小、实时资金费率和预期持仓时间,精确估算需要支付或可以收取的资金费用,帮助交易者制定最优的持仓策略。

⚠️ 重要提醒: • 费用方向:资金费率为正时多头支付空头,为负时空头支付多头 • 结算周期:每8小时结算一次(00:00、08:00、16:00 UTC) • 动态费率:资金费率会根据市场情况实时调整 • 持仓影响:长期持仓需要考虑累积的资金费用成本

🎯 适用场景: • 中长期持仓者评估持仓成本和收益 • 套利交易者计算资金费用对收益的影响 • 投资者选择最优的开仓和平仓时机 • 风控系统预估持仓的综合成本

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

💸 BTCUSDT 资金费用计算结果

📊 输入参数:
合约品种:BTCUSDT 永续合约
持仓方向:多头 (LONG)
持仓数量:2.50000000 BTC
预期持仓:72小时 (3天)
计算基准:标记价格 43,285.75 USDT

📈 费率信息:
当前费率:+0.0125% (正费率)
费用方向:多头支付空头
历史平均:+0.0095% (偏高)
下次结算:2024-01-15 16:00:00 UTC (30分钟后)

⏰ 结算计划:
预期持仓内结算次数:9次
结算时间:每8小时一次
剩余时间:72小时 = 3天
费用累积:按次结算,到期支付

💸 费用计算:
持仓名义价值:108,214.38 USDT
单次费用:13.53 USDT (0.0125%)
累计费用:121.77 USDT (9次结算)
费用率:+0.1125% (累计费率)

📊 成本分析:
每日费用:40.59 USDT
每小时费用:1.69 USDT
费用占比:0.1125% (持仓价值)
年化成本:13.69% (如费率不变)

💡 策略建议:
资金费用:需支付 121.77 USDT
盈亏平衡:需要价格上涨0.11%覆盖费用
建议操作:考虑在低费率时开仓

⚠️ 费率趋势分析:
当前费率:偏高水平 (历史75%分位)
市场情绪:多头占优,费用压力大
预期变化:可能在48小时内回落
操作建议:可等待费率回落后加仓

⏱️ 最优时机:
费率监控:建议费率低于0.005%时开仓
持仓时长:如超过7天,累积费用显著
平仓建议:可在负费率时段获取费用收益

🎯 风险提示:
资金费用只是持仓成本之一,主要风险仍来自价格波动。
长期持仓需密切关注费率变化趋势。
极端行情下资金费率可能急剧变化。
建议设置费率预警,及时调整策略。

📈 历史数据:
过去7天平均费率:+0.0089%
最高费率:+0.0456% (2024-01-10)
最低费率:-0.0123% (2024-01-12)
费率波动性:中等水平

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes永续合约,如"BTCUSDT"。只适用于USDT永续合约,币本位合约暂不支持。
holdHoursYes预计持仓小时数。资金费用每8小时收取一次(00:00、08:00、16:00 UTC),按持有时间计算费用次数。
positionSizeYes持仓数量。正数表示多头持仓,负数表示空头持仓。数量用基础资产计量(如BTC数量)。
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly. It discloses fee direction rules, 8-hour settlement cycle, dynamic rate behavior, cumulative cost implications, and risk warnings. It also provides a detailed output example showing exact return structure, which is critical since no output schema exists.

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?

While quite long, the description is well-structured with emoji section headers, bullet points, and a full output example. The output example earns its length because without an output schema it is the only way to convey return format. However, it could be trimmed without losing essential information.

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?

Given the tool's moderate complexity, no annotations, and no output schema, the description is highly complete. It covers what the tool does, how it behaves, when to use it, what inputs are needed, what outputs to expect, and caveats/risks. The comprehensive output example fully compensates for missing structured output definitions.

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 tool description adds a concrete usage example with BTCUSDT and explains how inputs map to outputs, but the schema already fully documents each parameter's meaning and constraints. The description doesn't materially enrich parameter understanding beyond the schema.

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 calculates the expected funding fee cost for USDT perpetual contracts, with a specific verb and resource. It distinguishes itself from sibling calculation tools like binance_calculate_position_size and binance_get_optimal_trade_size by focusing solely on funding cost estimation.

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 provides explicit applicable scenarios (long-term holders, arbitrage traders, risk systems, timing of entry/exit) and notes it applies only to USDT perpetuals (in schema). It doesn't explicitly mention when not to use or compare to alternatives, but the context is clear enough for appropriate selection.

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