name: quodd
description: 通过 Quodd API 获取实时股票行情。可查询美股股票的当前价格、日内最高/最低价以及盘后交易数据。适用于用户询问股票价格、行情、市场数据或股票代码信息时。
metadata: {"openclaw":{"emoji":"📈","requires":{"bins":["python3"],"env":["QUODD_USERNAME","QUODD_PASSWORD"]}}}
通过 Quodd API 获取美股股票的实时行情数据。
更多信息请访问:https://www.quodd.com/stock-and-etf-data
# 获取苹果公司(AAPL)的行情
python scripts/quote.py AAPL
# 获取多个股票的行情
python scripts/quote.py AAPL MSFT META
请先设置以下环境变量:
export QUODD_USERNAME="你的用户名"
export QUODD_PASSWORD="你的密码"
python scripts/quote.py AAPL
python scripts/quote.py AAPL MSFT META GOOGL
python scripts/quote.py AAPL --format json
python scripts/quote.py AAPL --no-cache
Quodd 股票行情
代码 日期 时间 最高价 最低价 收盘价 盘后时间 盘后价格
-------------------------------------------------------------------------------
AAPL 01/29/26 14:30 185.50 180.25 182.63 17:45:30 182.80
{
"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
}
]
}
~/.openclaw/credentials/quodd-token.json,有效期为 20 小时--no-cache 参数强制刷新令牌