已暴露为 MCP 工具:
crypto_historical_klines —— 在 Claude / Cursor / 任意 MCP 客户端中直接调用。详见 MCP Server 60 秒配置。它为 Agent 做什么
crypto_historical_klines 返回单个加密货币交易对的 OHLCV K 线。它是 agent 拿历史价格做收益率、回撤、技术指标、回测的 历史价格 primitive —— 不是用来取最新报价的工具(取最新价用 crypto_snapshot)。
同一个接口支持两种查询模式:传 limit 取最近 N 根已收盘 candle,或者传 start_time + end_time 取一个明确时间窗口。只返回已收盘的 candle,当前未收盘的 bar 永远不在结果里。
返回值
CryptoHistoricalResult
required
number
本次调用消耗的 credit(固定
1)。number
账户剩余 credit。
200 OK · crypto_historical_klines
说明
直接调用
HTTP / SDK 示例
HTTP / SDK 示例
完整参数参考
crypto_historical_klines — 请求参数
crypto_historical_klines — 请求参数
相关接口
加密货币实时快照
交易对的当前价格 + 24h 涨跌 —— 只关心”现在”时用这个。
美股历史日线
同样的 Recent / Range 双模式,作用在美股标的(日线)。