跳转到主要内容
GET
Get Historical Stock Prices
某只股票的历史 OHLCV K 线。ticker、interval、start_date 和 end_date 四项均为必填——没有回溯窗口的简写方式。interval 取 day、week、month 或 year 之一。每根 K 线包含 open、close、high、low、volume 和 time,放在 prices 数组中,并附带回显的 ticker。适合用于绘图或衡量某个已知窗口内的涨跌。如果只需要最新价格,请使用 get_financial_prices_snapshot。
第一次用? 把任意 MCP 客户端指向 https://mcp.aisa.one/mcp —— Claude Code、 Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次 Allow,不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点: search、list_categories、get_details 和 batch_quote 免费,batch_use 按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和 每次调用的价格见 aisa.one/zh-cn/mcp。
在你的 agent 里把这个端点跑起来 →

请求规范

  • 方法与路径: GET /apis/v1/financial/prices
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/financial/prices
  • cursor: query; 可选
  • end_date: query; 必填
  • interval: query; 必填
  • interval_multiplier: query; 可选
  • start_date: query; 必填
  • ticker: query; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

请求费用。 默认请求预估费用:$0.02 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

查询参数

cursor
string

Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.

end_date
string
必填

The end date for the price data (format: YYYY-MM-DD).

Provider reference (supplier schema): {"format":"date","type":"string"}.

interval
string
必填

The time interval for the price data.

Provider reference (supplier schema): {"enum":["day","week","month","year"],"type":"string"}.

interval_multiplier
string
start_date
string
必填

The start date for the price data (format: YYYY-MM-DD).

Provider reference (supplier schema): {"format":"date","type":"string"}.

ticker
string
必填

股票代码(例如 AAPL、MSFT)。

响应

价格数据响应

next_page_url
string

Absolute URL of the next page of results. Present only when more results remain; request it as-is to continue. Each page holds up to 100 records.

prices
object[]
ticker
string

股票代码。