360 Secure SkillHub
360 安全技能中心

Quodd

该 Skill 通过 Python 脚本 quote.py 调用 Quodd API 获取美股实时行情,包括最新价、日内高低价与盘后数据,支持单个或多个股票代码查询、文本或 JSON 输出,以及 --no-cache 强制刷新鉴权令牌;需要 QUODD_USERNAME 和 QUODD_PASSWORD 环境变量。

khaney64
khaney64
热度 93.14
最近更新 2026-05-11 15:53:33
分类:数据依赖:代码执行 / 第三方 API应用场景:财务 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add quodd
Metadata
name
quodd
description
Fetch real-time stock quotes via Quodd API. Get current prices, daily high/low, and after-hours data for US equities. Use when the user asks for stock prices, quotes, market data, or ticker information.
metadata
{"openclaw":{"emoji":"📈","requires":{"bins":["python3"],"env":["QUODD_USERNAME","QUODD_PASSWORD"]}}}

Quodd Stock Quotes

Fetch real-time stock quotes for US equities via the Quodd API.

For more information, visit: https://www.quodd.com/stock-and-etf-data

Quick Start

# Get a quote for Apple
python3 /home/claw/.openclaw/workspace/skills/quodd/scripts/quote.py AAPL

# Get quotes for multiple tickers
python3 /home/claw/.openclaw/workspace/skills/quodd/scripts/quote.py AAPL MSFT META

Prerequisites

Requires QUODD_USERNAME and QUODD_PASSWORD environment variables to be set.

Usage

Single Ticker

python3 /home/claw/.openclaw/workspace/skills/quodd/scripts/quote.py AAPL

Multiple Tickers

python3 /home/claw/.openclaw/workspace/skills/quodd/scripts/quote.py AAPL MSFT META GOOGL

JSON Output

python3 /home/claw/.openclaw/workspace/skills/quodd/scripts/quote.py AAPL --format json

Force Token Refresh

python3 /home/claw/.openclaw/workspace/skills/quodd/scripts/quote.py AAPL --no-cache

Output Format

Text (Default)

Quodd Stock Quotes
Symbol   Date        Time      High      Low     Close    AH Time     AH Price
-------------------------------------------------------------------------------
AAPL     01/29/26    14:30    185.50   180.25   182.63   17:45:30     182.80

JSON

{
  "quotes": [
    {
      "symbol": "AAPL",
      "date": "01/29/26",
      "time": "14:30",
      "high": 185.50,
      "low": 180.25,
      "close": 182.63,
      "after_hours_time": "17:45:30",
      "after_hours_price": 182.80
    }
  ]
}

Output Fields

  • Symbol - Stock ticker symbol
  • Date - Quote date
  • Time - Quote time
  • High - Day high price
  • Low - Day low price
  • Close - Last traded price
  • AH Time - After hours trade time
  • AH Price - After hours price

Notes

  • Authentication tokens are cached at ~/.openclaw/credentials/quodd-token.json for 20 hours
  • Use --no-cache if you encounter authentication errors after credential changes