已暴露为 MCP 工具:
crypto_historical_klines —— 在 Claude / Cursor / 任意 MCP 客户端中直接调用。详见 MCP Server 60 秒配置。它为 Agent 做什么
crypto_historical_klines 返回单个加密货币交易对的 OHLCV K 线。它是 agent 拿历史价格做收益率、回撤、技术指标、回测的 历史价格 primitive —— 不是用来取最新报价的工具(取最新价用 crypto_snapshot)。
用 start_time 和/或 end_time 先过滤候选窗口,再用 limit 和 take_from 决定保留哪一端。返回顺序始终是旧到新。只返回已收盘的 candle,当前未收盘的 bar 永远不在结果里。
返回值
仅在候选窗口内的数据多于实际返回条数时出现 —— 也就是结果被
limit 截断了。这句话提示 agent 缩小窗口或把查询拆成多次:More data exists in the requested window than the items returned; narrow the window or split the query to see more.200 OK · crypto_historical_klines
说明
直接调用
HTTP / SDK 示例
HTTP / SDK 示例
完整参数参考
crypto_historical_klines — 请求参数
crypto_historical_klines — 请求参数
相关接口
加密货币实时快照
交易对的当前价格 + 24h 涨跌 —— 只关心”现在”时用这个。
美股历史日线
同样的有界 historical-series 形状,作用在美股标的(日线)。