Glasser
Glasser

数据提供商: DataForSEO

使用DataForSEO查询某个股票代码的Google Finance报价。

默认输入规模下,每次调用 $0.002在 40 秒内响应

读取股票代码对应的 Google Finance 页面上的市场板块:金融工具按市场分组,每行包含股票代码、价格和涨跌。必须传入 symbol,但返回的是上述数据区块,不是所传股票代码的报价;将公司名称转换为股票代码的接口会为每个代码返回价格。每次调用发送一次请求,按供应商的价目表计费;空结果集会标记为无结果。

如何调用

第 1 步接入

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

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

Show me how to use the DataForSEO endpoint /v3/serp/google/finance_quote/live/advanced on Glasser.

第 2 步尝试一个具体任务

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

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

提示词
Use dataforseo:/v3/serp/google/finance_quote/live/advanced 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": [
    "keyword"
  ],
  "properties": {
    "os": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "tag": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "device": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "window": {
      "type": "string",
      "description": "Chart window from 1D (default) to MAX. Any value other than 1D doubles the price."
    },
    "keyword": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "language_code": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "language_name": {
      "type": "string"
    },
    "location_code": {
      "type": "integer"
    },
    "location_name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}

计费说明

默认输入规模更大的输入和付费选项会随数据提供商的用量而改变费用。 有无匹配数据均按此价格收费。$0.002
每次运行的费用上限总费用不会超过此金额。$0.004
数据提供商错误数据提供商未能响应。$0.00
运行超时运行超过时间限制。$0.00
内部错误内部错误导致运行未能完成。$0.00
方法POST版本5数据提供商文档 ↗