Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_spot_trade_history

Fetch executed spot trades for a symbol with price, quantity, fees, and time. Use for accurate profit/loss calculation, transaction verification, and trade reconciliation.

Instructions

【现货成交记录】查询现货市场的实际成交明细

📋 功能说明

  • 查询每笔实际成交的详细信息

  • 包含成交价格、数量、手续费、时间等完整数据

  • 支持时间范围和分页查询

  • 可用于精确核对交易成本和收益

⚠️ 重要提醒

  • 只显示实际成交的交易,不包含未成交订单

  • 每次查询限定一个交易对

  • 时间范围不能超过24小时

  • 包含买方和卖方手续费信息

🎯 适用场景

  • 精确计算交易成本和净收益

  • 核对账户资金变动明细

  • 分析成交价格和市场时机

  • 导出交易数据用于税务申报

📊 输出示例 查询成功后将返回:

💰 现货成交记录查询结果

📊 成交概况
查询期间:最近24小时
交易对:BTCUSDT (BTC/USDT现货)
成交笔数:3 笔实际交易
总成交额:135 USDT
总手续费:0.135 USDT
平均价格:45,000 USDT

📋 成交明细

💵 成交 #987654321
关联订单:#12345678
成交时间:2022-01-01 08:05:30
交易角色:买方 (Taker)
成交价格:45,000 USDT
成交数量:0.001 BTC
成交金额:45 USDT
手续费:0.045 USDT (0.1%)
净成本:45.045 USDT
实际获得:0.001 BTC

💵 成交 #987654322
关联订单:#12345679
成交时间:2022-01-01 10:15:20
交易角色:卖方 (Maker)
成交价格:46,000 USDT
成交数量:0.001 BTC
成交金额:46 USDT
手续费:0.046 USDT (0.1%)
净收入:45.954 USDT
卖出资产:0.001 BTC

📈 收益分析
总买入:0.001 BTC (花费 45.045 USDT)
总卖出:0.001 BTC (收入 45.954 USDT)
净盈亏:+0.909 USDT
收益率:+2.0%

💡 交易提示
成交记录完整,盈亏计算准确。
建议定期核对成交数据与账户余额。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回记录数量限制(可选,默认500) • 取值范围:1-1000 • 默认值:500 • 较小值响应更快,适合实时查询 • 较大值适合批量导出数据 💡 数量选择: - 实时监控:50-100 - 常规查询:200-500 - 批量导出:500-1000
fromIdNo起始交易ID(可选,用于分页) • 从指定交易ID开始返回记录 • 用于分页查询大量成交数据 • 可从之前查询结果的最后一笔成交获取 • 与时间参数可以组合使用 💡 分页使用: - 首次查询不填写 - 后续查询使用上次结果的最小交易ID
symbolYes交易对符号(必填) • 每次查询只能指定一个交易对 • 格式:基础资产+计价资产,如BTCUSDT、ETHUSDT • 区分大小写,必须完全匹配 • 建议查询有成交记录的活跃交易对 💡 查询技巧: - 先通过订单历史确认有成交记录 - 按交易对分别查询,便于分析
endTimeNo查询结束时间(可选,13位毫秒时间戳) • 必须大于startTime • 与startTime差值不超过24小时 • 建议设置为当前时间或稍早时间 • 格式:1640995200000 💡 注意事项: - 时间跨度控制在24小时内 - 预留时间缓冲避免边界问题
startTimeNo查询开始时间(可选,13位毫秒时间戳) • 格式:1640995200000 • 必须与endTime配合使用 • 查询范围最大24小时 • 不填写默认查询最近成交记录 💡 时间设置: - 建议查询最近几小时的数据 - 可使用 Date.now() 获取当前时间戳
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behavioral traits: only actual trades are returned (not unfilled orders), each query is limited to one trading pair, time range cannot exceed 24 hours, and both buyer and seller fee information is included. This gives substantial insight beyond the schema.

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 and front-loads the purpose. However, the output example is lengthy, adding many lines of detail. While it aids understanding of the return format, it could have been trimmed without losing essential meaning.

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 has 5 parameters, no output schema, and no annotations, the description is remarkably complete. It explains constraints, use cases, and provides a detailed output example that compensates for the missing output schema. This is more than sufficient for an agent to invoke the tool correctly.

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% with detailed explanations for each parameter, so the baseline is 3. The tool description itself does not add significant parameter semantics beyond the schema; it focuses more on the tool's function and output.

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 '查询现货市场的实际成交明细' (query actual trade details in the spot market), with a specific verb and resource. It distinguishes itself from order history by emphasizing it shows only actual fills, not unfilled orders, which differentiates it from siblings like binance_spot_order_history.

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 '适用场景' (suitable scenarios) such as cost calculation, reconciliation, and tax reporting, and includes '重要提醒' with explicit exclusions (one trading pair, 24-hour limit). However, it does not explicitly name alternative sibling tools, so the guidance is clear but not fully comparative.

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