pandaData is an open-source data client for the A-share market, whose core goal is to deliver market and stock selection data to users via active push, reducing reliance on REST polling. The project builds a real-time data channel on NATS that can push market quotes, Level2, DDX large orders, capital flows, and stock selection signals.
Key capabilities:
- Real-time data push: actively receive A-share real-time data through NATS channels, covering market quotes, Level2, DDX large orders, capital flows, and stock selection signals.
- Real-time snapshot requests: 4 CurReal topics support request/response retrieval of A-share real-time quotes, index, concept, and industry snapshots without subscription.
- AI stock selection: provides AI stock selection interfaces such as get_ch_select_stock().
- Open interfaces: the public test account can call 22 request/response interfaces; the server has a total of 210 interfaces, with the full list and return fields in INTERFACES.md.
- MCP integration: the local stdio MCP Server (mcp/server.py) exposes 22 tools, corresponding one-to-one with the 22 open interfaces of the public test account, and can be called directly by Claude, Cursor, and OpenClaw; SKILL.md in the repository root allows direct activation by Claude Code / OpenClaw.
- Hosted MCP Space: provides a Hugging Face hosted Space (D-Asce/pandastock-mcp-space), requiring no installation or registration, using the public test account.
Usage:
- Installation and upgrade: pip install --upgrade pandastock-mcp; see mcp/config_example.json for an MCP configuration example.
- Initialization example: PandaStock(phone="pandastock", nid="pandastock"), which uses the same server-side authentication as dedicated accounts, differing only in quota.
- The public test account requires no registration and works right after installation; it is rate-limited by source IP and by interface, and includes a global daily cap, and is for evaluation and trial use only. Formal, high-frequency, or full interfaces require applying for a dedicated phone/nid (the materials give WeChat onestock188 or pandastock888).
- Domestic direct-connect mirror:https://gitee.com/nutou123/pandastocksdk。
- When configuring the MCP client, note that the trailing slash in the URL cannot be omitted; you can also add it with one click via the MCP badge on the Space card on the Hugging Face settings page.
Use cases: quantitative research, market monitoring, and AI stock selection experiments that need to obtain A-share real-time quotes and capital flow data via push, as well as development scenarios where clients such as Claude, Cursor, and OpenClaw directly call A-share data tools through MCP.
Limitations and notes: the client contains no restriction logic; authentication, quotas, frequency, and tiering are all enforced on the server side (NATS gateway); the public test account only opens 22 interfaces, and the remaining interfaces require a dedicated key. The project is MIT-licensed (see LICENSE), the client is open source, and calling the backend requires a valid phone/nid and is billed by usage. Specific pricing, quota values, and details of the return fields for each interface are not fully provided in the materials; consult INTERFACES.md or contact the interface provider.