skills/tushare-data-1.0.5/references/数据接口/现货数据/上海黄金基础信息.md
wangyitong a65adcc2e5 Initial commit: merged, deduplicated, and vetted skill collection
Sources: extracted from two upstream archives (skill-repo, skills-main),
merged with the following policy:

- 15 broken symlinks (pointing to /Users/jameslee/.cc-switch/skills or
  ../../.agents/skills on a foreign machine) discarded
- 3 real name collisions with identical content (ai-pair, ifind-http-api,
  zhipu-websearch) kept as one copy
- Functional overlaps deduped keeping the strongest variant:
  - docx family: kept docx (official, full toolchain) + docx-cn
    (GB/T 9704 Chinese official-document constants),
    dropped docx_writer (no scripts, name collided with docx)
  - humanizer family: kept humanizer-zh (6 zh reference docs),
    dropped humanizer (en, redundant for CN workflow)
- Skills that only ran in a foreign environment removed:
  ablemind-ops, app-publish, hlb-design-system, openclaw-adj-skill,
  claude-driver
- alphapai excluded from this public repo because its SKILL.md hard-coded
  live credentials

Result: 25 skills, 572 files, ~7.5 MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-13 14:47:12 +08:00

2.7 KiB
Raw Blame History

黄金现货基础信息


接口sge_basic 描述:获取上海黄金交易所现货合约基础信息 限量单次最大100条当前现货合约数不足20个可以一次提取全部不需要循环提取 积分用户积5000积分可以调取具体请参阅积分获取办法

输入参数

名称 类型 必选 描述
ts_code str N 合约代码 (支持多个,逗号分隔,不输入为获取全部)

输出参数

名称 类型 默认显示 描述
ts_code str Y 品种代码
ts_name str Y 品种名称
trade_type str Y 交易类型
t_unit float Y 交易单位(克/手)
p_unit float Y 报价单位
min_change float Y 最小变动价位
price_limit float Y 每日价格最大波动限制
min_vol int Y 最小单笔报价量(手)
max_vol int Y 最大单笔报价量(手)
trade_mode str Y 交易期限
margin_rate float Y 保证金比例
liq_rate float Y 违约金比例(%)
trade_time str Y 交易时间
list_date str Y 上市日期

接口用法


pro = ts.pro_api()

df = pro.sge_basic()

或者


df = pro.sge_basic(ts_code='Au99.95')

数据样例

  ts_code    ts_name  min_vol  max_vol       trade_time
0    Au99.95     黄金9995        1      500     白天9:00至15:30夜间:19:50 至次日 02:30
1    Au99.99     黄金9999        1    50000    白天9:00至15:30夜间:19:50 至次日 02:30
2    Au(T+D)       黄金延期        1      200     上午:9:00 至 11:30下午 ...
3    Pt99.95     铂金9995        1     1000       白天9:00至15:30夜间:19:50 至次日 02:30
4    Ag(T+D)       白银延期        1     2000    上午:9:00 至 11:30下午:...
5     Au100g     100克金条        1     1000     白天9:00至15:30夜间:19:50 至次日 02:30
6   Au(T+N1)     黄金T+N1        1     2000      上午:9:00 至 11:30下午:13:30 至 ...
7   Au(T+N2)     黄金T+N2        1     2000      上午:9:00 至 11:30下午:13:30 至 ...
8   mAu(T+D)     迷你黄金延期        1     2000    上午:9:00 至 11:30下午:13:30 至 ...
9   iAu99.99  国际板黄金9999        1    50000    白天9:00至15:30夜间:19:50 至次日 02:30
10    PGC30g    熊猫金币30克        1     1000     白天9:00至15:30夜间20:00至次日02:30
11  NYAuTN06  沪纽金AuTN06        1     2000   白天9:00至15:30夜间:19:50 至次日 02:30
12  NYAuTN12  沪纽金AuTN12        1     2000   白天9:00至15:30夜间:19:50 至次日 02:30