Glasser
Glasser

数据提供商: Financial Datasets

按日期范围和间隔获取某股票代码的历史股价数据(Financial Datasets)

$0.02 / 次调用在 45 秒内响应

获取在start_date和end_date之间某只股票代码的股价走势数据,包括每个时间点的开盘价、最高价、最低价、收盘价以及交易量。start_date和end_date必须同时提供,格式为YYYY-MM-DD。interval 可选 day、week、month 或 year。每次调用只处理一页数据;将返回的游标用于读取长数据序列的下一页内容。

如何调用

第 1 步接入

首次使用时,将提示词粘贴到 Agent 对话中。Skill 会自动安装 CLI 并完成登录。无法使用 shell 的 Agent 可通过 MCP 接入。

接入
set up https://glasser.ai/SKILL.md

Show me how to use the Financial Datasets endpoint /prices on Glasser.

第 2 步尝试一个具体任务

更新价格参考表时,可以查询价格,并保留可用的单位和观测时间。

复制此提示词到你的 Agent,查询参考表所需的价格。

提示词
Use financialdatasets:/prices on Glasser.
Look up my requested price and keep the unit and observation time for my reference sheet.

接口结构

json
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "ticker",
    "interval",
    "start_date",
    "end_date"
  ],
  "properties": {
    "cursor": {
      "type": "string",
      "maxLength": 2000,
      "minLength": 1
    },
    "ticker": {
      "type": "string",
      "pattern": "^[A-Za-z0-9.-]{1,12}$"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "interval": {
      "enum": [
        "day",
        "week",
        "month",
        "year"
      ],
      "type": "string"
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    }
  },
  "additionalProperties": false
}

计费说明

返回数据或无匹配有无匹配数据均按此价格收费。$0.02
数据提供商错误数据提供商未能响应。$0.00
运行超时运行超过时间限制。$0.00
内部错误内部错误导致运行未能完成。$0.00