Skip to main content
Glama
kydlikebtc

binance-mcp-server

by kydlikebtc

binance_spot_klines

Get Binance spot market candlestick data with open, high, low, close prices and volume. Use for technical analysis, identifying trends, support/resistance levels, and backtesting strategies.

Instructions

📊 K线数据查询 - 现货市场技术分析利器

🔍 功能说明: 获取现货市场的K线(蜡烛图)历史数据,包含开盘价、最高价、最低价、收盘价和成交量等完整技术指标。每根K线代表特定时间段内的价格走势,是技术分析的基础数据。

⚠️ 重要提醒: • 时间间隔支持:1分钟到1个月,建议短期分析用1m/5m,长期分析用1d/1w • 数据限制:单次最多返回1500根K线,如需更多数据请分批获取 • 时间格式:使用毫秒级时间戳,建议使用最近30天内的数据以确保准确性 • 交易时间:现货市场24小时交易,但在系统维护时段可能数据延迟

🎯 适用场景: • 技术分析师绘制价格图表,识别支撑位和阻力位 • 量化策略师获取历史数据进行回测和策略验证 • 交易员查看不同时间周期的价格走势制定交易计划 • 风险管理人员分析价格波动性和历史极值

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

📊 BTCUSDT K线数据(1小时线)

⏰ 数据时间范围:2024-01-15 10:00 ~ 2024-01-15 14:00
📈 共返回:5根K线
📉 时间间隔:1小时 (1h)

💰 最新K线详情:
开盘价:42,850 USDT
最高价:43,120 USDT (+0.63%)
最低价:42,720 USDT (-0.30%)
收盘价:43,050 USDT
涨跌幅:+200 USDT (+0.47%)

📊 成交数据:
成交量:156.8 BTC
成交额:673.2万 USDT
成交笔数:2,847笔
主动买入量:89.2 BTC (占比 56.9%)

⚡ 技术提示:
• 收盘价高于开盘价:阳线(上涨)
• 上影线较短:上方阻力不强
• 成交量适中:市场参与度正常

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回K线数量。默认500,最大1000。建议根据分析需要选择合适数量:短线分析用100-300,长线分析用500-1000。
symbolYes必填。要查询的现货交易对,如"BTCUSDT"。
endTimeNo查询结束时间,13位时间戳(毫秒)。必须大于startTime。不填则默认到当前时间。
intervalYesK线时间间隔:1m=1分钟, 5m=5分钟, 15m=15分钟, 1h=1小时, 4h=4小时, 1d=1天, 1w=1周, 1M=1月。短间隔适合短线分析,长间隔适合趋势分析。
startTimeNo查询开始时间,13位时间戳(毫秒)。与endTime配合使用可查询特定时间段的数据。
Behavior2/5

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

The description discloses several behaviors: batch fetching for more data, millisecond timestamp format, and potential data delays during maintenance. However, it states '单次最多返回1500根K线' while the input schema sets the limit maximum to 1000. This direct contradiction with the schema is a serious transparency flaw that could lead an agent to request an invalid limit, making the description unreliable.

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 overly verbose, using emojis, marketing language ('技术分析利器'), and an extensive illustrative output example with technical tips (e.g., '上影线较短'). While it is structured into sections, much of the content is not necessary for an agent to select or invoke the tool, and it repeats information already present in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers purpose, usage scenarios, limitations, and provides a detailed output example, which is helpful given the lack of an output schema. However, the example is a formatted text representation rather than the actual API response structure (array of kline arrays), leaving uncertainty about exact return fields. The incorrect limit also undermines completeness. Overall, it is moderately complete but not fully reliable.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage with detailed descriptions for all 5 parameters, so the description does not need to compensate. However, the description adds little beyond repeating interval meanings and offering analysis advice, and it actively misinforms the limit parameter by citing 1500 instead of the schema's max 1000. This reduces trust in parameter handling despite the schema richness.

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 fetches spot market candlestick (K-line) historical data, with a specific verb ('获取') and resource ('现货市场的K线'). It explicitly says '现货市场', distinguishing it from futures_klines, and describes the data contents (open, high, low, close, volume). This fully clarifies the tool's purpose.

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 lists concrete use cases (technical analysis, backtesting, trade planning) and recommends interval choices (short-term 1m/5m, long-term 1d/1w). It does not explicitly mention alternatives like futures_klines, but the spot-market emphasis and sibling tool names imply when to use this vs other tools. No exclusions are given, but the context is clear.

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