Install
openclaw skills install sina-marketFetch and inspect market data from Sina Finance public webpage resources across multiple market types. Use when a user wants A-share quotes, Hong Kong stock quotes, domestic futures quotes, futures page metadata, Chinese futures name to contract-code detection, contract/month discovery, code validation, or a unified Sina-based market lookup workflow involving symbols such as 600519, 000001, 00700, AG0, AU0, SC0, PG2607, EB2607, MA2605, or Chinese inputs such as 甲醇2605, 白银2606, 沥青2606.
openclaw skills install sina-marketA unified Sina Finance market-data skill for:
This skill does not currently claim support for US stocks or full market-index-specific parsing. Keep the public description aligned to implemented behavior.
Examples:
python3 scripts/sina_market.py detect 600519 00700 AG0 PG2607
python3 scripts/sina_market.py detect 甲醇2605 白银2606 沥青2606
Supports:
600519, 000001, sh600519, sz00000100700, hk00700python3 scripts/sina_market.py stock-quote 600519 000001 00700 --format json
python3 scripts/sina_market.py stock-quote 600519 00700 --format table
Supports direct futures quote lookup, including nf_-style inner futures routing when needed.
python3 scripts/sina_market.py futures-quote AG0 AU0 SC0 --format json
python3 scripts/sina_market.py futures-quote PG2607 EB2607 MA2605 BU2606 --format json
python3 scripts/sina_market.py futures-quote 甲醇2605 白银2606 沥青2606 --format json
Useful when direct quote output is empty or when you want page-level discovery data.
python3 scripts/sina_market.py futures-page PG2607
python3 scripts/sina_market.py futures-page EB2607
This is the most useful command for mixed workflows.
python3 scripts/sina_market.py inspect 600519 00700 AG0 PG2607 EB2607 --format json
python3 scripts/sina_market.py inspect 甲醇2605 白银2606 沥青2606 --format json
Use this to quickly see whether a symbol resolves via stock-hq, futures-hq, or page-fallback.
python3 scripts/sina_market.py coverage-test 600519 00700 AG0 PG2607 EB2607 --format table
python3 scripts/sina_market.py coverage-test 甲醇2605 PVC2605 PTA2605 白银2606 聚丙烯2605 沥青2606 --format table
The skill uses a layered strategy.
hq.sinajs.cnhq.sinajs.cnnf_ + contract code for inner futuresExamples:
甲醇2605 → MA2605PVC2605 → V2605PTA2605 → TA2605白银2606 → AG2606聚丙烯2605 → PP2605沥青2606 → BU2606Prefer this structure in replies:
结论:是否成功获取实时行情 / 是否走 fallback市场类型:A股 / 港股 / 国内期货 / 期货页面元数据标准代码:标准化后的代码关键字段:最新价、最高、最低、成交量、持仓量、日期、时间风险提示:新浪公开网页资源字段和覆盖范围可能变化nf_ supportscripts/sina_market.py: unified working scriptscripts/sina_futures.py: legacy futures-oriented helper retained during transitionreferences/fields.md: futures field normalization notesreferences/chinese_futures_mapping.json: curated Chinese futures name to contract-code mapping