Install
openclaw skills install @xuyun9160-lgtm/noah-stock-market用于港股和美股市场数据查询与结构化行情摘要。当用户询问股票当前价格、最新行情、市场快照、分时走势、K线、盘口摆盘、逐笔成交、经纪队列、市场是否开盘、个股资金流向、板块与板块成分股、股票基础信息、期权到期日或期权链等场景时使用。适用于 HK-00700、US-AAPL 这类标准代码,也适用于用户直接输入股票名称或简写代码。仅用于只读查询,不用于下单、账户、持仓、交易执行或投资建议。
openclaw skills install @xuyun9160-lgtm/noah-stock-market港股 / 美股只读市场数据 skill。通过公司内部证券 Open API 获取市场数据,并将原始结果整理成适合聊天场景阅读的结构化摘要。
Usage notice:本 skill 只提供市场数据查询与整理,不提供下单、持仓、账户或投资建议。
本 skill 依赖公司内部证券 Open API。通过 ClawHub / OpenClaw 安装后,用户仍需补充 market token。
推荐配置文件:
~/.openclaw/.secrets/noah-market.env
推荐最小配置:
NOAH_MARKET_APIKEY=your_common_token
NOAH_API_BASE_URL=https://securities-open-api.noahgroup.com
说明:
https://securities-open-api.noahgroup.comnoah-stock-market 与 noah-stock-trade 共用同一个通用 tokenNOAH_MARKET_APIKEY当前环境已验证支持:
不支持:
references/auth-and-preflight.md,确认 API 配置与 token 读取方式。references/symbol-resolution.mdreferences/snapshot-and-quote.mdreferences/kline-and-intraday.mdreferences/orderbook-ticker-broker.mdreferences/market-status.mdreferences/capital-flow.mdreferences/plates-and-basicinfo.mdreferences/api-mapping.mdreferences/usage-guide.mdreferences/known-limitations.md默认只走只读接口。
优先使用标准代码发请求:港股 HK-00700,美股 US-AAPL。
用户输入名称、简称或裸代码时,先做标准化,再请求接口。
如标的存在歧义,不要猜;先返回候选或要求用户澄清市场 / 代码。
默认返回结构化摘要,不直接倾倒整段原始 JSON。
仅当用户明确要求“明细”“完整逐笔”时,才展开更多原始字段。
排行榜、IPO 列表属于扩展能力;只有当用户明确问到时才使用。
对 wealth_total_asset 与 wealth_private_contract_asset_list:
USD 查询优先通过 scripts/run_query.py 调用已验证能力:
协议规则(重要):
references/openapi.yaml、references/enum.yaml、references/entity.yaml 是本 skill 的协议源文件。
凡是 openapi 参数声明为枚举引用(enum.yaml#/...),调用时必须从 references/enum.yaml 取值并校验,禁止按语义猜测枚举值。
若协议源缺失、解析失败或传入值不在 enum 中,应直接报错,不要构造猜测参数继续请求。
snapshot
market_state
global_state
intraday
ticker
broker_queue
kline
capital_flow
basicinfo
trading_days
us_analysis
rank
ipo_list
financial_hk
financial_us
shareholder_inc_red_hold
shareholder_inc_red_hold_by_ucode
wealth_balance_list
wealth_cash_total_asset
wealth_fixed_income
wealth_private_contract_asset_list
wealth_total_asset
示例:
python3 scripts/run_query.py snapshot HK-00700
python3 scripts/run_query.py market_state HK-00700
python3 scripts/run_query.py global_state HK-00700
python3 scripts/run_query.py intraday HK-00700
python3 scripts/run_query.py ticker HK-00700 num=10
python3 scripts/run_query.py broker_queue HK-00700
python3 scripts/run_query.py kline HK-00700 num=10 ktype=K_DAY
python3 scripts/run_query.py kline HK-00700 from=20260401000000000 to=20260413235959999 ktype=K_DAY autype=NONE
python3 scripts/run_query.py capital_flow HK-00700 num=5
python3 scripts/run_query.py basicinfo HK-00700
python3 scripts/run_query.py trading_days HK-00700 start=20260401 end=20260430
python3 scripts/run_query.py us_analysis US-AAPL
python3 scripts/run_query.py rank HK market_codes=HK rank_field=raisePercent page=1 page_size=10
python3 scripts/run_query.py ipo_list HK market=HK
python3 scripts/run_query.py financial_hk HK-00700 type_code=DT4 year=2024
python3 scripts/run_query.py financial_us US-AAPL type_code=DT4 year=2024
python3 scripts/run_query.py shareholder_inc_red_hold HK market=HK shareholder=EVENT_DATE order_code=DESCEND page=1 page_size=10
python3 scripts/run_query.py shareholder_inc_red_hold_by_ucode HK-00700 shareholder=EVENT_DATE order_code=DESCEND page=1 page_size=10
python3 scripts/run_query.py wealth_balance_list HK
python3 scripts/run_query.py wealth_cash_total_asset HK
python3 scripts/run_query.py wealth_fixed_income HK productTypeList=NOTE,DEPOSIT_COM toCcy=HKD showTotalAsset=true
python3 scripts/run_query.py wealth_private_contract_asset_list HK toCurrency=HKD queryType=ALL positionStatus=HOLDING isPaging=true
python3 scripts/run_query.py wealth_total_asset HK toCurrency=HKD
如果脚本返回 ok=false,先直接向用户说明失败原因,不要编造数据。
如果用户没有指定 K 线周期与数量,kline 默认使用 num=5、ktype=K_DAY、autype=NONE。
如果用户直接用自然语言提问,可优先尝试 scripts/route_query.py 做第一轮意图识别,再落到 scripts/run_query.py。
当前 route_query.py 已支持基础的 K 线周期识别(如日K、周K、月K、5分钟K)与数量识别(如“最近10根”)。
默认输出顺序:
要求:
当用户在开发、调试、设计或排查这个 skill 时,可以说明:
当 skill 面向最终用户实际使用时:
只回答用户需求与结果
只展示清晰、简洁、业务化的数据结果
不暴露接口 URL、路径、token、脚本名、内部实现逻辑
不把开发调试信息带给最终用户
如果用户询问“noah-stock-market 有什么功能”“你支持什么功能”“这个 skill 能做什么”等能力范围问题,优先用下面这套标准口径回答:
noah-stock-market 目前支持港股和美股的只读市场数据查询,主要包括:
你可以直接用自然语言提问,比如:
一句话概括就是:
noah-stock-market 已经覆盖港股 / 美股常用行情查询、结构化分析,以及财务和股东增减持这两类扩展数据能力。
HK-00700US-AAPL