Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Wmshare

by open-winmaleversion 2.3.0i★ 24iRuns on your computerRepository ↗
Registry nameio.github.open-winmale/wmshare

How to install

What it does

Python SDK MCP server: offline catalog + 2,752 precomputed A-share/HK/US metrics for AI agents.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Developer tools

Use together with

Skills that teach the AI this kind of work; they work alongside this one

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

by morluto★ 467,2351 skills

Skill · How-to guide

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

by multica-ai★ 234,1251 skills

Skill · How-to guideNo license stated

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

by Graphify-Labs★ 149,8731 skills

Skill · How-to guide

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity17/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score29/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: 14 (Used only on the Trending tab)

Install

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

Let AI install it

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.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: 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

    Open the uv download page ↗

    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

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "wmshare": {
          "command": "uvx",
          "args": [
            "wmshare"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    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

What you can do instead

A · Use an app that can connect Wmshare

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

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)

Let AI install it

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.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: 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

    Open the uv download page ↗

    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

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user wmshare -- uvx wmshare
  4. Type /mcp in Claude Code

    You should see Wmshare listed as connected

  5. Try it

    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)

Let AI install it

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.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: 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

    Open the uv download page ↗

    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

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    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)

Let AI install it

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.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: 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

    Open the uv download page ↗

    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

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    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.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Wmshare💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user wmshare -- uvx wmshare

Claude 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.

At a glance

Downloads per weeki
80/wk
Licencei
BSD-3-Clause
Connection
Runs on your computer
Latest versioni
2.3.0
Published to registryi
Nov 19, 2026
Code last changedi
Nov 18, 2026
Maker
open-winmale
Packages
pypi: wmshare
Registry status
Active

Which apps can use it

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

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

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

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account open-winmale, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses BSD-3-Clause

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked yet

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/open-winmale-wmshare.svg)](https://mcp.popnx.com/en/servers/open-winmale-wmshare)

Discussion

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.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Developer toolsi

  • More stars than 93% of the other 6136 servers in this category
  • Published to the registry more recently than 99% of the other 6136 servers in this category
  • Basic checks equal to or better than 99% of the other 6136 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Wmshare safe?

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.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

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).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (2.3.0) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

Similar alternatives

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

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

by ahmedkhaleel2004Widely used★ 19KUpdated 2 months ago

Runs in the cloud✓ service owner · gitdiagram.comTried by the PopNx team

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

by AppllamaWidely used★ 5.2KUpdated 3 months ago

Runs in the cloud✓ service owner · appllama.io

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

by repowise-devWidely used↓ 6.5K/wk★ 8.2K Stars for the whole repoUpdated 6 days ago

Computer or cloud✓ service owner · repowise.dev
Compared with similar ones
This one
Wmshare
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyNoNoNoNoNoNo
Add with + in ClaudeNoNoNoYesNoNo
Basic checks3/34/44/44/44/45/5
LicenseBSD-3-ClauseMITMITApache-2.0Apache-2.0AGPL-3.0
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

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.

wmshare

English TL;DR — wmshare is 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>   # 方式一:环境变量

方式二:~/.wmshare/credentials.env(KEY=VALUE 每行一条)

方式三:构造参数 cli = wmshare.Client(client_id="...", client_secret="...")

选股实战:一条表达式筛出「三年股息均值 > 3% 且 ROE > 15%」

条件写成一条表达式交给服务端索引引擎扫全市场(不是逐票请求、也不是本地过滤): 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%}')

900948 伊泰B股 三年股息率均值 21.04% ROE 16.31%

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.valuationPE/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):

  • 预置指标库(2,752 个指标码,11 组精选 78 码带量级守护):历史分位($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=真实命中数);涨跌全景/分桶/行业分布/涨跌榜同走服务端预计算索引,毫秒级。
  • 离线目录防编造:298 个底层函数、137 个核心接口、2,752 个指标码离线可查 (cat.search("中文")),目录之外的名字显式报错。
  • 零凭证离线试跑:wmshare.demo_client()(同签名、不联网,2026-10-30 固定快照;非实时数据)。
  • 数据守护:全库单位统一(比率=小数、金额=元、量=股),返回前量级/不变量校验,违例抛 DataError。

给 AI / Agent

  • 先查目录再写代码(一行验证): python3 -c "import wmshare; print(wmshare.load().search('股息'))"
  • 本地 MCP server:20 个 task tools;全部 154 个 friendly API——137 登记 + 17 个组合接口——均可用 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 用法。
  • skill 随包分发:wmshare.skill_dir() 可复制进 .agents/.zcode/.claude 的 skills/。
  • AI 友好索引:llms.txt(索引)/ llms-full.txt(全文拼接,大上下文直读)。

主站、开放平台与 SkillHub

同一套数据有三层入口,按使用方式选:

  • [winmale.com](https://winmale.com)(主站)——不想写代码就看结果。工具按投资者类型分开:
  • 找低估:市赚率阶梯、银行 PB 阶梯、行业贵不贵、格雷厄姆选股
  • 做定投:指数定投(估值评级榜单 + 定投回测,宽基/行业/红利/主题,整体法与中位数双口径)
  • 做套利:可转债(转股成本对正股价,转股有起始日)、套利股(已公告要约)、两地折价(A/H)
  • 读财报:财报专业版(资产负债表/利润表/现金流量表/主要指标十年表页,A 股与港股同构)
  • 跟机构:抄作业(13F 持仓);另有 ETF 精选、全榜排行、市场拥挤、宏观与海关等,共 25 个内置应用
  • 工作台:市场总览、行业涨跌热力图、估值排行(低估/合理/高估);分免费版 / 基础版 / Pro 三档
  • [open.winmale.com](https://open.winmale.com)(开放平台)——把数据接进自己的系统: XS 求值 API、Playground 在线调试、数据目录(指标与分析脚本可浏览试跑)、 12 篇接入文档(认证/错误码/限速与 EC 配额/缓存重试)、下载中心与控制台。 本 SDK 就是它的官方 Python 封装。
  • [SkillHub](https://open.winmale.com/skillhub)——在 AI 助手里用自然语言提问: 37 个金融 Skill + 5 个投研 Role 整包一键装进 Cursor / Claude / WorkBuddy, 登录后复制安装话术交给助手完成,即可取数、读财报、跑筛选。

与本 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 接口待路由。

我想做 X → 用哪一行

我想做…一行接口省掉的计算
看 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()

TTM 股息率:小数口径,0.0396 = 3.96%

print(cli.dividend.yield_ttm("600519")) # 0.0396

估值温度计:PE(TTM) 处于近 10 年 42% 分位(小数)

print(cli.indicator.get("600519", "$PCT_PE_TTM_10Y_LAST")) # 0.42

行业定位:ROE 在同行业内的分位(1.0 = 行业最高;茅台 ROE 为行业之最)

print(cli.indicator.get("600519", "$CUR_IND_ROE_PCT_LAST")) # 1.0

全市场涨跌全景:服务端索引直出,免本地扫描(*_pct 百分数、median_pct 小数)

print(cli.screener.index_breadth_summary())

{'total': 5685, 'up': 4567, 'down': 934, 'flat': 184, 'up_pct': 80.3, ...}

全市场列表 / 行业成分(中文名直达,也可传 "S48")/ 批量:单标的接口传 list 即批量(≤500/批)

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

Only the beginning is shown; read the rest in the repo