← 返回
未分类

Sina Market (GSAgent)

Fetch 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...
从新浪财经公开网页获取多市场行情数据并进行检查,适用于获取A股报价、香港股票等。
yzsec
未分类 clawhub v1.3.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 349
下载
💾 0
安装
1
版本
#latest

概述

Sina Market

A unified Sina Finance market-data skill for:

  • A-shares
  • Hong Kong stocks
  • domestic futures
  • Sina futures quote pages
  • Chinese futures name detection and code normalization

This skill does not currently claim support for US stocks or full market-index-specific parsing. Keep the public description aligned to implemented behavior.

What this skill can do

1. Detect market types

Examples:

python3 scripts/sina_market.py detect 600519 00700 AG0 PG2607
python3 scripts/sina_market.py detect 甲醇2605 白银2606 沥青2606

2. Fetch stock quotes

Supports:

  • A-shares, e.g. 600519, 000001, sh600519, sz000001
  • Hong Kong stocks, e.g. 00700, hk00700
python3 scripts/sina_market.py stock-quote 600519 000001 00700 --format json
python3 scripts/sina_market.py stock-quote 600519 00700 --format table

3. Fetch domestic futures quotes

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

4. Extract futures page metadata

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

5. Unified inspect with fallback

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

6. Batch coverage test

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

Routing logic

The skill uses a layered strategy.

Stocks

  • A-shares → hq.sinajs.cn
  • Hong Kong stocks → hq.sinajs.cn

Futures

  • try raw contract code
  • try nf_ + contract code for inner futures
  • if quote still fails, try Sina futures quote page metadata fallback

Chinese futures names

Examples:

  • 甲醇2605MA2605
  • PVC2605V2605
  • PTA2605TA2605
  • 白银2606AG2606
  • 聚丙烯2605PP2605
  • 沥青2606BU2606

Output guidance

Prefer this structure in replies:

  • 结论:是否成功获取实时行情 / 是否走 fallback
  • 市场类型:A股 / 港股 / 国内期货 / 期货页面元数据
  • 标准代码:标准化后的代码
  • 关键字段:最新价、最高、最低、成交量、持仓量、日期、时间
  • 风险提示:新浪公开网页资源字段和覆盖范围可能变化

Current strengths

  • unified stock + futures workflow
  • inner futures nf_ support
  • futures page discovery fallback
  • batch coverage testing
  • Chinese futures input support

Known limitations

  • Chinese futures mapping is curated, not exhaustive yet
  • page metadata fallback does not guarantee full quote fields
  • some symbols may still require additional market-specific parsing in the future
  • public webpage resources are not an official SLA-backed API

Files

scripts/

  • scripts/sina_market.py: unified working script
  • scripts/sina_futures.py: legacy futures-oriented helper retained during transition

references/

  • references/fields.md: futures field normalization notes
  • references/chinese_futures_mapping.json: curated Chinese futures name to contract-code mapping

版本历史

共 1 个版本

  • v1.3.0 当前
    2026-05-07 09:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,371 📥 319,670
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,948
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,329