with one click
sina-quote
Real-time stock/ETF/index quotes from Sina Finance (新浪财经)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Real-time stock/ETF/index quotes from Sina Finance (新浪财经)
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Single-file HTML slide-deck template for Tao Te Ching chapter decks — ink-style, 10-page narrative, hand-rolled engine, reusable CSS variables and animation classes
Design or interpret dye process curves for woven synthetics, diagnose defects, and recommend colorfastness improvements with explicit trade-offs.
Identify woven synthetic fibers and explain their dyeing and finishing implications from lab clues, fabric specs, and supplier claims.
Compare finish systems, interpret SDS or trade names, assess PFAS and chemical compliance, and recommend substitutes for woven synthetics.
Reference knowledge for DWR system comparison, PFAS regulations, hazardous substance thresholds, and auxiliary chemical brand identification.
Reference knowledge for woven synthetic fiber identification, dye-class matching, process windows, and cost/energy structure.
| name | sina-quote |
| version | 1.0.0 |
| description | Real-time stock/ETF/index quotes from Sina Finance (新浪财经) |
| dependencies | {"skills":[],"mcps":[]} |
Fetch real-time quotes for A-share stocks, ETFs, and indices via Sina Finance HTTP API. No API key required. Fast and lightweight — ideal for batch price lookups.
GET https://hq.sinajs.cn/list={codes}
Headers:
Referer: https://finance.sina.com.cn
Parameters:
codes = comma-separated list of stock codes with market prefix
Market prefixes:
sh — Shanghai (SH stocks, SH ETFs, SH indices)sz — Shenzhen (SZ stocks, SZ ETFs)Examples:
sh600519 (贵州茅台), sz000858 (五粮液)sh512800 (银行ETF), sz159919 (沪深300ETF)sh000001 (上证指数), sz399001 (深证成指)sh600519,sz000858,sh512800var hq_str_sh512800="银行ETF,0.780,0.784,0.784,0.786,0.779,0.783,0.784,501041698,392116009.000,...,2026-03-09,10:52:40,00,";
Fields (comma-separated):
import requests
def get_quotes(codes):
"""Fetch real-time quotes. codes: list of 'sh600519', 'sz000858', etc."""
url = f"https://hq.sinajs.cn/list={','.join(codes)}"
headers = {"Referer": "https://finance.sina.com.cn"}
r = requests.get(url, headers=headers)
results = {}
for line in r.text.strip().split("\n"):
if "=" not in line:
continue
var_name, data = line.split("=", 1)
code = var_name.split("_")[-1] # e.g. sh512800
fields = data.strip('";\n').split(",")
if len(fields) < 32:
continue
results[code] = {
"name": fields[0],
"open": float(fields[1]),
"prev_close": float(fields[2]),
"price": float(fields[3]),
"high": float(fields[4]),
"low": float(fields[5]),
"volume": int(fields[8]),
"amount": float(fields[9]),
"date": fields[30],
"time": fields[31],
}
return results
# Single quote
quotes = get_quotes(["sh512800"])
print(quotes["sh512800"]["price"])
# Batch quotes (up to ~100 codes per request)
quotes = get_quotes(["sh600519", "sz000858", "sh512800", "sh000001"])
for code, q in quotes.items():
print(f"{q['name']} ({code}): {q['price']}")
r.encoding = 'gbk' if names show garbled