Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes A-share linkage with US, Hong Kong, commodity and FX markets, including AH premium and ADR mapping, in formal or brief styles.
Use this skill ↓59% 82%+23 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
# cn-stock-data 统一层获取行情(跨市场用 snowball 路由)
python -c "
import subprocess, json
# A股主要指数(通过 cn-stock-data → efinance 路由)
# 上证指数 000001, 沪深300 000300, 创业板指 399006
# 用 cn-stock-data skill 的 quote/kline 接口
# 港股(snowball 路由,HK 前缀)
# 恒生指数 HK00001, 恒生科技 HKHSTECH, H股指数 HK00011
# 美股(snowball 路由,US 前缀)
# 标普500 US.SPX, 纳斯达克 US.IXIC, 道琼斯 US.DJI
# 需要 pysnowball token 才能获取港美股数据
import pysnowball as ball
# ball.set_token('your_token')
# ball.quotec('SH000001,HKHSI,.DJI,.IXIC,.INX') # 跨市场报价
# ball.kline('SH000001', period='day', count=-120) # K线数据
"
# AH 股比较数据(akshare 直接调用)
python -c "
import akshare as ak
# AH 股比价
df = ak.stock_a_ah_comparison_em()
print(df.head(20).to_string())
# 返回字段:代码/名称/A股价格/H股价格/比价(A/H)/溢价率
"
# 大宗商品(akshare)
python -c "
import akshare as ak
# 国际原油
df = ak.futures_foreign_hist(symbol='CL') # WTI原油
# 伦敦金
df = ak.futures_foreign_hist(symbol='GC') # COMEX黄金
# LME铜
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.