rea
Reverse engineer anything with agents, from app behavior down to native binaries.
Python SDK MCP server: offline catalog + 2,752 precomputed A-share/HK/US metrics for AI agents.
Skills that teach the AI this kind of work; they work alongside this one
Reverse engineer anything with agents, from app behavior down to native binaries.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Lists are ordered by a usage score (out of 100) built from these parts
| Popularity | 17/80 | GitHub stars or weekly downloads: the larger counts 60, the smaller 20 |
|---|---|---|
| Freshness | 12/12 | Full marks for a release or code change within 30 days |
| Still answering | 0/8 | The cloud endpoint answered at the last check |
| Usage score | 29/100 |
Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: 14 (Used only on the Trending tab)
Pick the AI app you use, then copy the settings.
Let your AI install it with one sentence
Please install Wmshare. Follow https://mcp.popnx.com/i/open-winmale-wmshare.md, show me the commands and wait for my OK before running them.Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads
Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 19, 2026
First: which AI do you use?
Pick your app and the steps appear below.
Works with Claude, with some setup first
Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Wmshare for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "wmshare": { "command": "uvx", "args": [ "wmshare" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Wmshare tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
SettingsDeveloperEdit Config
{
"mcpServers": {
"wmshare": {
"command": "uvx",
"args": [
"wmshare"
]
}
}
}Use Wmshare and tell me what you can do for me, then show me one thing✓ If Claude says it is using Wmshare or shows a Wmshare tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
ChatGPT cannot connect Wmshare yet
Wmshare runs on your computer, but ChatGPT can only connect servers that run on the web
A · Use an app that can connect Wmshare
B · Others in Developer tools that work with ChatGPT
Picked from the most used in the same category, only ones that connect by address with no key
Works with Claude Code, with some setup first
Install Python (uv) on your computer first (one time)
Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Wmshare for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user wmshare -- uvx wmshare 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Wmshare tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Mac: press Command+Space and type Terminal · Windows: open PowerShell
claude mcp add --scope user wmshare -- uvx wmshareYou should see Wmshare listed as connected
Use Wmshare and tell me what you can do for me, then show me one thing✓ If Claude Code says it is using Wmshare or shows a Wmshare tool in the answer, you are connected
Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with Cursor, with some setup first
Install Python (uv) on your computer first (one time)
Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Wmshare for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "wmshare": { "command": "uvx", "args": [ "wmshare" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Wmshare tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Use Wmshare and tell me what you can do for me, then show me one thing✓ If Cursor says it is using Wmshare or shows a Wmshare tool in the answer, you are connected
Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Works with VS Code, with some setup first
Install Python (uv) on your computer first (one time)
Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.
Please install the MCP server Wmshare for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "wmshare": { "type": "stdio", "command": "uvx", "args": [ "wmshare" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Wmshare tools really show up.This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.
Already installed? Check first · Open Terminal, type this command and press Enter
uv --versionMac: press ⌘ + Space, type Terminal, press Enter
Windows: open Start, type Windows PowerShell, then Open
Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required
When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version
Install once; it works for everything that needs uv
Use Wmshare and tell me what you can do for me, then show me one thing✓ If VS Code says it is using Wmshare or shows a Wmshare tool in the answer, you are connected
Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version
Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.
JSON settings are under “For developers” below
Claude Code
claude mcp add --scope user wmshare -- uvx wmshareClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"wmshare": {
"command": "uvx",
"args": [
"wmshare"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"wmshare": {
"command": "uvx",
"args": [
"wmshare"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"wmshare": {
"type": "stdio",
"command": "uvx",
"args": [
"wmshare"
]
}
}
}These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.
Run on your computer in
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026
The registry name was verified with the GitHub account open-winmale, which owns the repo
Code last changed yesterday
Uses BSD-3-Clause
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Not checked yet
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/servers/open-winmale-wmshare)Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
No reviews yet
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed yesterday, and the latest version (2.3.0) reached the registry today.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
Same category, other makers, commands already checked. Official ones first, then by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Cloudflare MCP servers
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| This one Wmshare | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| Runs where | Installs on your computer | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Runs in the cloud, nothing to install | Cloud or install on your computer |
| Needs a key | No | No | No | No | No | No |
| Add with + in Claude | No | No | No | Yes | No | No |
| Basic checks | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| License | BSD-3-Clause | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| Price | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry | No cost listed in the registry |
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
English TL;DR —
wmshareis a BSD-3-Clause Python SDK for China A-share / Hong Kong / US
market data: k-line, intraday, money flow, statements, screener, whole-market batch, and
2,752 server-precomputed metrics (percentile ranks, multi-window averages, industry-relative
ranks — no DIY computation). Ships an offline catalog, data guards and AI skill. **Credentials
required** on open.winmale.com; try offline first with
wmshare.demo_client()(frozen snapshot;
not live). Install:
pip install wmshare. Full English quickstart: docs/QUICKSTART_EN.md.
给 Python 量化开发者的中文财经数据 SDK:一行接口拿到清洗好的 A股/港股/美股数据—— 估值分位、TTM 股息率等指标服务端算好直出,全市场批量 12 次请求绕开限流。 凭证在开放平台(open.winmale.com)获取后即可取数;各市场逐能力明细见「市场覆盖」。
基本功能 · 特色功能 · 快速上手 · 给 AI / Agent · 主站、开放平台与 SkillHub · 市场覆盖 · 我想做 X → 用哪一行 · 批量取数 · 指数与行业估值历史 · 单位与数据守护 · 许可与数据服务 · 更多
装完就能跑,不用注册、不联网(随包内置 2026-10-30 固定快照,非实时数据):
import wmshare
cli = wmshare.demo_client() print(f"{cli.dividend.yield_ttm('600519'):.2%}") # 3.57% print(cli.screener.index_breadth_summary()["total"]) # 5686
接真实行情只换一行:cli = wmshare.Client.from_env()(凭证配置见下节)。 指标怎么选、每条能替你省掉哪些计算,见我想做 X → 用哪一行。
pip install wmshare # 基础安装
pip install "wmshare[mcp]" # 可选:本地 MCP server python3 -c "import wmshare; print(wmshare.version)" # 验证安装
国内直连不稳时换清华源:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple wmshare(镜像滞后时回官方源);升级 pip install -U wmshare(Windows 用 py -m pip install -U wmshare)。
凭证在 开放平台「我的 → 开放平台 → 我的应用」页获取 AppId(Client ID) 与 API Key(Client Secret) 两个值(缺一不可),配置方式任选其一:
export WMSHARE_CLIENT_ID=<AppId> WMSHARE_CLIENT_SECRET=<API Key> # 方式一:环境变量
条件写成一条表达式交给服务端索引引擎扫全市场(不是逐票请求、也不是本地过滤): count 是真实命中数,rows 只是前 N 条——不会把 topN 当成全市场结果:
import wmshare
cli = wmshare.Client.from_env() res = cli.screener.query( "$BONUS_RATE_3Y_AVG_LAST > 0.03 && $ROE_TTM_LAST > 0.15" " && !$IS_ST && !$IS_SUSPEND", order="$BONUS_RATE_3Y_AVG_LAST", limit=10, ) print(res["count"]) # 全市场命中数(不是 10);2026-11-10 实测 108 for r in res"rows": print(f'{r["symbol"]} {r["name"]} ' f'三年股息率均值 {r["$BONUS_RATE_3Y_AVG_LAST"]:.2%} ' f'ROE {r["$ROE_TTM_LAST"]:.2%}')
where 用 XS 语法(&& / || / !,比率一律小数),$码 必须是目录内真码; 要分页续取用 offset,只要命中数用 limit=0。没配凭证也能先看调用面: cli = wmshare.demo_client()(同签名、不联网)——query 需真实凭证,离线快照只存 10 只演示宇宙 + 当日全市场 screener,非实时数据;换成 Client.from_env() 即接真实数据。
随包离线目录:20 个数据域 · 298 个底层函数 · 2752 个指标代码;友好层 137 个核心接口, 按使用视角组织为(11 个指标组、78 个精选常用指标代码,cat.search("中文") 可编程检索):
| 门面 | 核心能力 | 单位口径 | |
|---|---|---|---|
cli.kline | 日 K 三种复权(自上市首日起全覆盖,最早 1991 年)、周 K/月 K、最新/盘中快照、1 分钟分时(个股;ETF 无分钟源,查询被拦截)、ETF/指数 | 价格=元、量=股、涨跌幅=小数 | |
cli.screener | 全市场条件选股(query,一条 $码 表达式出命中数与前 N 行)+ 单票筛选器(涨停/均线/动量/回撤/放量)+ 全市场涨跌全景/分桶/行业分布/涨跌榜 | 阈值=小数;涨跌家数统计的 *_pct 亦为小数(2.0 统一) | |
cli.backtest | 单股买卖点回测(取数 + 本地撮合;纯内核 wmshare.backtest 可自备数据):均线金叉/死叉 或 PE/PB/PS/PR 估值阈值(估值序列 ≤3 年)→ 成交明细 + 净值/回撤/胜率(次日开盘成交、T+1、100 股整手、佣金/印花固定) | 价格=元、收益=小数 | |
cli.moneyflow | 主力/超大单/大单/中单/小单净流入(日频) | 金额=元 | |
cli.statements | 三大报表多期(cn/hk/us 宽表,`period=annual\ | quarter`)、审计意见 | 报表原币元 |
cli.segments | 经营分部:分产品/业务/区域收入构成 | 元;比率=小数 | |
cli.indicator | 按指标码取数:估值/盈利/成长/现金流/杜邦、期货主力连续($FUT_CLOSE 等 27 码 + fut_symbol);全量码表见 INDICATORS.md | 比率=小数 | |
cli.valuation | PE/PB/PS/市赚率(PR)的历史统计与分位(窗口上限 3 年) | 分位=小数 | |
cli.notice | 公告检索、回购/减持信号 | — | |
cli.filings | 定期报告清单与最新 | — | |
cli.forecast | 业绩预告/快报、财报披露日历 | 同比=小数 | |
cli.dividend | 分红历史、TTM 股息率/派息率、11 个质量筛选器 | 率=小数、DPS=元/股 | |
cli.equity | 股东治理:十大股东/股东户数/质押/解禁/机构持仓/沪港通/国家队/高管增减持/股本/回购/并购重组/关联交易/担保/诉讼 | 比例=小数、金额=元、量=股 | |
cli.margin | 个股融资融券(融资买入/偿还/余额、融券卖出/偿还/余量) | 金额=元、量=股 | |
cli.estimates | 机构盈利预测(逐年 EPS/PE)、预测明细、评级统计、个股研报 | EPS=元/股、PE=倍 | |
cli.cbond | 可转债合约快照、条款事件、正股关联、强赎计数、日 K 与盘中 1 分钟;daily/article/figures 一条链路出日更图文 | 价格=元(面值 100) | |
cli.workout | 契约套利条款(要约收购/换股/现金选择权)看板与单票查询 | 价格=元 | |
cli.index | 指数键列表、成分股(市值/估值中枢)、权重股、指数与申万一级行业的估值趋势(周频整体法 PE/PB,约 14 年,带 3/5/10 年分位) | 市值=元、比率=小数、权重=小数 | |
cli.stocks | 全市场证券列表(代码/名称/交易所/三级行业/上市日/ST)、行业目录(申万/恒生)、行业成分股(中文名直达) | listed=YYYY-MM-DD、is_st=布尔 | |
cli.intl | 港股 CCASS(中央结算持仓)/主要股东/机构评级/盈利预测,港美沽空,美股发行信息 | 量=股、占比=小数、价格=披露币种 | |
cli.macro | 宏观时序/as-of/采样频率($CPI/$GDP/$M2…)、中债收益率按期限、行业情报单值 | 上游原值(价格指数=点、流量存量=元、收益率=小数) | |
cli.info | 公司档案(名称/行业/组织类型/上市日期) | — |
服务端预计算,先查目录再写代码——目录里有的码不要自己算(eval 按标的数逐票计费 EC):
$PCT_PE_TTM_10Y_LAST = PE 十年分位)、多窗口均值/最低/趋势($BONUS_RATE_3Y_AVG_LAST = 近3年股息率TTM均值)、 行业内分位($CUR_IND_ROE_PCT_LAST,1=行业最高)、行业均值($ID_ROE_TTM)、指数加权股息率 ($IDW_BONUS_RATE_HM)、期货主力连续($FUT_CLOSE)、宏观时序($CPI)。命名语法 $主题+[窗口 3Y/5Y/10Y]+[统计量 TTM/YOY/AVG/MIN/TREND]+[_LAST];全量码表按数据类型分章 (概览/股票行情/股票指标/行业/指数及ETF/宏观/期货/可转债/港美)见 docs/INDICATORS.md。cli.batch_all(name, codes) 把 A 股 5,375 家压成 11 次请求绕开限流。cli.screener.query("$ROE_TTM_LAST > 0.15") 一条表达式扫全市场索引 (count=真实命中数);涨跌全景/分桶/行业分布/涨跌榜同走服务端预计算索引,毫秒级。cat.search("中文")),目录之外的名字显式报错。wmshare.demo_client()(同签名、不联网,2026-10-30 固定快照;非实时数据)。DataError。python3 -c "import wmshare; print(wmshare.load().search('股息'))"wmshare_call(target=..., mode="api") 兜底,macro 域仅此路径。配置:pip install "wmshare[mcp]" → wmshare-mcp setup --client-id --client-secret-stdin --market cn(提示后粘贴 API Key, wmshare-mcp doctor 体检);客户端最小配置 {"mcpServers":{"wmshare":{"command":"wmshare-mcp","args":[]}}};接入路径详见 AI 用法。wmshare.skill_dir() 可复制进 .agents/.zcode/.claude 的 skills/。同一套数据有三层入口,按使用方式选:
与本 SDK 的分工:主站给「想直接拿到结果」的人,开放平台给「要接进自己系统」的开发者,
SkillHub 给「想在 AI 里问」的使用者;wmshare 是开放平台的 Python 封装,负责第三条路的取数层。
| 数据能力 | A股 cn | 港股 hk | 美股 us |
|---|---|---|---|
| 日 K 三种复权 / 周 K·月 K(服务端派生)/ 1 分钟分时 / 盘中快照 | ✅ 全量 | ✅ | 日 K 日更 + 周/月 K 派生;快照/盘中新鲜(注记见下) |
| 指标库(2,752 码:估值/盈利/成长/分红/分位/振幅/技术面) | ✅ | ✅ | ✅(用裸代码 AAPL;AAPL.O 由 SDK 归一) |
| 分红:历史、TTM 股息率/派息率、质量筛选 | ✅ | ✅ | ✅(窗口口径固定) |
| 公告与披露信号 | ✅ | ✅ | — |
| 财报清单与最新披露 | ✅ | ✅ | — |
| 股东治理:高管名册 / 高管增减持 / 股本变更 | ✅ | ✅ | ✅(仅股本变更) |
| 股东治理:十大股东 / 质押 / 解禁 / 机构持仓 / 重组 / 担保 / 诉讼 / 股东户数 | ✅ | — | — |
| 全市场选股:单票筛选器 / 涨跌全景 / 高息池 | ✅ | 部分(单票筛选可用;高息池索引暂缺) | — |
港美专项:CCASS / 主要股东 / 机构评级 / 盈利预测(cli.intl) | — | ✅ | — |
港美专项:沽空(cli.intl.query_sellshort) | — | ✅ | ✅ |
港美专项:发行信息(cli.intl.issue_info) | — | — | ✅ |
| 资金流 / 两融 / 可转债 / 业绩预告 / 盈利预测研报 / 经营分部 / 契约套利 | ✅ | — | — |
全市场列表 / 行业目录 / 行业成分(cli.stocks) | ✅ | ✅ | 列表 ✅(美股代码表手动刷新有滞后);行业目录树暂缺 |
离线代码表 + 检索(cat.symbols_search) | ✅ | ✅ | ✅ |
市场切换:Client(market="cn" / "hk" / "us"),缺省 cn;代码与市场不匹配会被服务端直接拒绝(如 cn 市场查 00700 报 market mismatch)。美股用裸代码(AAPL/BRK_B),AAPL.O/BRK.B 由 SDK 按代码表自动归一;cli.intl 港美股披露也要用对应市场客户端调用。
如实注记(2026-11-09 实测):港/美列 ✅ 均经 live 探针逐族验证;美股用裸代码(AAPL/BRK_B,带后缀会被当宏观序列,SDK 按代码表归一);美股日 K 日更,周/月 K 由日线派生,后复权无外部因子源,分时仅美股盘中(北京夜间)有值。深研宽表暂仅 cn;hk 十大流通股东与回购管线已有、SDK 接口待路由。
| 我想做… | 一行接口 | 省掉的计算 |
|---|---|---|
| 看 TTM 股息率 | cli.dividend.yield_ttm(sym) | 拉全部分红史→截 TTM 窗→查市值→相除 |
| 判断估值贵不贵 | cli.indicator.get(sym, "$PCT_PE_TTM_10Y_LAST") | 拉十年估值史自己算百分位 |
| 看估值历史均值/中位/分位 | cli.valuation.hist_stats(sym, "pe", "3y") | 拉 3 年估值序列→自己算统计量 |
| 看公司在行业里的位置 | $CUR_IND_ROE_PCT_LAST(行业内 ROE 分位,1=行业最高) | 拉全行业成分→逐票取 ROE→排序 |
| 筛高股息且派息可持续 | cli.dividend.screen_quality(sym) | 自写股息/派息率质量模型 |
| 全市场按任意指标组合选股 | cli.screener.query("$BONUS_RATE_3Y_AVG_LAST > 0.03 && $ROE_TTM_LAST > 0.15") | 先批量拉全市场→本地过滤(还容易漏样本) |
| 回测这只票的均线买卖点 | cli.backtest.run("600519", fast=5, slow=20) | 拉 K 线→自己写撮合/费用→算净值回撤 |
| 回测 PE/PB 估值买卖点 | cli.backtest.run("600519", rule="pe", buy=20, sell=40) | 拉估值序列→自己判买卖→算净值(估值序列平台最多 3 年) |
| 站上 20 日线了吗 | cli.screener.screen_above_ma20(sym) | 拉 K 线→算均线→比较 |
| 全市场今天涨跌如何 | cli.screener.index_breadth_summary() | 全市场扫描→聚合统计 |
| 看最新十大股东 | cli.equity.query_holder10(sym) | 翻定期报告→抄股东名单 |
| 质押比例高不高 | cli.equity.query_pledge_summary(sym) | 翻质押公告→逐笔累加 |
| 下半年解禁压力大吗 | cli.equity.query_release(sym) | 翻解禁公告→手工排期 |
| 两融余额什么水平 | cli.margin.query(sym) | 翻交易所两融披露→对日期 |
| 券商怎么看这只票 | cli.estimates.query_forecast(sym) | 汇总各家研报预测→自己算均值 |
| 沪深300 都有谁 | cli.index.members("index.hs300", "mv", 10) | 找成分表→自己拉行情 |
| 这票正股有哪些转债 | cli.cbond.of_stock(sym) | 翻转债名录→逐只对正股 |
| 港股筹码在谁手里 | cli.intl.query_ccass(sym) | 上披露易→逐日查 CCASS |
| 今日涨幅榜前十 | cli.screener.index_top_movers(limit=10) | 全市场扫描→排序→取头部 |
| 近半年有无回购/减持 | cli.notice.has_buyback(sym, "6m") | 拉公告列表→分类匹配→截窗 |
| 拿全市场代码池 | cli.stocks.list() | 逐页拼列表→核对代码格式 |
| 银行股都有谁 | cli.stocks.industry_members("银行") | 查行业分类→逐票打标签 |
| 取 CPI/GDP 宏观时序 | cli.macro.query("$CPI", 6) | 找数据源→对齐期间→自己建时序 |
| 看期货主力连续行情 | cli.indicator.get(sym, "$FUT_CLOSE", fut_symbol="cn.RB.SHF") | 找期货源→清洗对齐 |
常用示例(输出为预期量级):
import wmshare
cli = wmshare.Client.from_env()
print(cli.dividend.yield_ttm("600519")) # 0.0396
print(cli.indicator.get("600519", "$PCT_PE_TTM_10Y_LAST")) # 0.42
print(cli.indicator.get("600519", "$CUR_IND_ROE_PCT_LAST")) # 1.0
print(cli.screener.index_breadth_summary())
rows = cli.stocks.list() # A 股 ≈5.7k 行:代码/名称/交易所/行业/上市日;港/美换 market df = cli.call_batch("kline.snapshot", ["600519", "000001"]).to_df() # 带 symbol 列的长表;to_df 需 pandas
以上能力全部在离线目录可查(cat = wmshare.load() 后):cat.search("分位")、cat.metrics_in_group("dividend"); 全量指标码导航见 INDICATORS.md;按分类找码、判断哪些码可同批取,见 [METRIC_ADAPTER.md](docs/METRIC_A