بنقرة واحدة
sina-quote
Real-time stock/ETF/index quotes from Sina Finance (新浪财经)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Real-time stock/ETF/index quotes from Sina Finance (新浪财经)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Xiaohongshu (小红书) browser automation skill. Use when browsing/searching content, extracting post data, or interacting with the platform via playwright. Requires pre-authenticated storage state.
Chinese traditional calendar and BaZi (Four Pillars of Destiny) skill. Provides CLI scripts for birth chart analysis, marriage compatibility, and auspicious date selection. Wraps the china-testing/bazi library with lunar-python.
Ctrip (携程) hotel price query tool. Use when checking hotel prices, comparing rates, or monitoring price changes on Ctrip via Playwright browser automation. Requires pre-authenticated storage state.
Amap (Gaode Maps) Web Service API skill. Provides CLI scripts for POI search, route planning, geocoding, and weather queries. Zero dependencies — uses Node.js native fetch (Node 18+).
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
Send emails via QQ Mail SMTP using nodemailer. Use when sending notifications, reports, or alerts via email.
| name | sina-quote |
| scope | langsensei |
| description | Real-time stock/ETF/index quotes from Sina Finance (新浪财经) |
| version | 1.0.0 |
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