Discover/Eastmoney API
live

Eastmoney APIwap.eastmoney.com

Access real-time quotes, K-line history, tick data, order books, and sector performance for Chinese A-shares and indices via the Eastmoney API.

Endpoint health
verified 5d ago
get_realtime_quote
get_tick_data
get_order_book
get_sector_list
get_kline_data
7/7 passing latest checkself-healing
Endpoints
7
Updated
19d ago

What is the Eastmoney API?

This API exposes 7 endpoints covering Chinese securities market data from Eastmoney (wap.eastmoney.com), including real-time quotes, historical candlestick data at intervals from 1-minute to monthly, tick-by-tick trades, and Level-2 order book snapshots. Start with search_security to resolve a stock name or code into the secid format required by every other endpoint, then query get_realtime_quote, get_kline_data, or get_tick_data for live and historical market data.

Try it
Maximum number of results to return
Search keyword: stock name, numeric code, or pinyin abbreviation (e.g. 'GZMT' for 贵州茅台)
api.parse.bot/scraper/b978b1dd-7b63-47e0-9ab7-9338ac88303e/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/b978b1dd-7b63-47e0-9ab7-9338ac88303e/search_security?count=5&query=600519' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace wap-eastmoney-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Eastmoney Financial Data SDK — bounded, re-runnable; every call capped."""
from parse_apis.eastmoney_financial_data_api import (
    Eastmoney, KlineInterval, Adjustment, SectorType, SecurityNotFound
)

client = Eastmoney()

# Search for a security by code to get its QuoteID (secid).
sec = client.securities.search(query="600519", limit=1).first()
print(f"Found: {sec.name} ({sec.code}) — QuoteID: {sec.quote_id}")

# Construct a Security directly by its known secid and fetch its real-time quote.
maotai = client.security(quote_id="1.600519")
quote = maotai.get_quote()
print(f"Quote: price={quote.price}, high={quote.high}, low={quote.low}, volume={quote.volume}")

# Fetch recent daily K-lines for the security.
for kline in maotai.klines.list(interval=KlineInterval.DAILY, adjustment=Adjustment.FORWARD, limit=3):
    print(f"  {kline.datetime}: open={kline.open}, close={kline.close}, change={kline.change_pct}%")

# List top-performing stocks sorted by change%.
for stock in client.stocks.list(sort_field="f3", sort_order=1, limit=3):
    print(f"Stock: {stock.name} ({stock.code}) change={stock.change_pct}%")

# List industry sectors.
for sector in client.sectors.list(sector_type=SectorType.INDUSTRY, limit=3):
    print(f"Sector: {sector.name} ({sector.code}) change={sector.change_pct}%, leader={sector.leading_stock}")

# Typed error handling: catch SecurityNotFound on a bad search.
try:
    result = client.securities.search(query="ZZZZNONEXISTENT999", limit=1).first()
    if result is None:
        print("No security found for query")
except SecurityNotFound as exc:
    print(f"SecurityNotFound: {exc}")

print("Exercised: securities.search / security.get_quote / klines.list / stocks.list / sectors.list")
All endpoints · 7 totalmissing one? ·

Full-text search over securities (stocks, indices, funds) by name, code, or pinyin abbreviation. Returns matching securities with their QuoteID (secid) needed for quote, kline, tick, and order book lookups. A single code like '600519' typically yields one exact match; broader terms yield multiple.

Input
ParamTypeDescription
countintegerMaximum number of results to return
queryrequiredstringSearch keyword: stock name, numeric code, or pinyin abbreviation (e.g. 'GZMT' for 贵州茅台)
Response
{
  "type": "object",
  "fields": {
    "results": "array of security objects with Code, Name, PinYin, QuoteID, SecurityTypeName"
  },
  "sample": {
    "data": {
      "results": [
        {
          "ID": "6005191",
          "JYS": "2",
          "Code": "600519",
          "Name": "贵州茅台",
          "MktNum": "1",
          "PinYin": "GZMT",
          "TypeUS": "2",
          "QuoteID": "1.600519",
          "Classify": "AStock",
          "InnerCode": "46077278941243",
          "MarketType": "1",
          "UnifiedCode": "600519",
          "SecurityType": "1",
          "SecurityTypeName": "沪A"
        }
      ]
    },
    "status": "success"
  }
}

About the Eastmoney API

Security Search and ID Resolution

All data endpoints require a secid in market.code format (e.g., 1.600519 for Kweichow Moutai on Shanghai, 0.000001 for Shenzhen Composite). Use search_security to resolve a stock name, code, or pinyin abbreviation into a secid. Results include Code, Name, PinYin, QuoteID, and SecurityTypeName, covering stocks, indices, and funds.

Real-Time Quotes and Order Book

get_realtime_quote returns a snapshot of current market conditions for a single security. Response fields use numeric codes: f43 (current price), f44 (high), f45 (low), f46 (open), f47 (volume), f48 (amount), f60 (previous close), and f170 (change percent), among others. You can pass a fields parameter to request only a subset. get_order_book returns up to 5 bid and 5 ask price levels with price and volume per level; note that bid/ask data may be empty outside regular trading hours.

Historical K-Lines and Tick Data

get_kline_data accepts a secid, an interval (1, 5, 15, 30, or 60 for intraday; 101/102/103 for daily/weekly/monthly), optional begin and end dates in YYYYMMDD format, and an adjustment flag (0=unadjusted, 1=forward, 2=backward). Each returned kline object includes datetime, open, close, high, low, volume, amount, amplitude, change_pct, change_amt, and turnover_rate. get_tick_data returns recent trade prints from the latest session, with each tick carrying time, price, volume, and a direction field valued Buy, Sell, or Neutral.

Stock and Sector Listings

get_stock_list returns a paginated list of equities with real-time performance fields (f2 for price, f3 for change percent, f6 for turnover amount). The fs parameter filters by market segment — for example, m:1+t:2 restricts results to Shanghai A-shares. Sorting is controlled by sort_field and sort_order. get_sector_list provides equivalent data at the industry or concept sector level, returning sector name (f14), BK-prefixed code (f12), and aggregate change percent (f3).

Reliability & maintenanceVerified

The Eastmoney API is a managed, monitored endpoint for wap.eastmoney.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when wap.eastmoney.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official wap.eastmoney.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
5d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a watchlist app that resolves Chinese stock names to secids via search_security and polls get_realtime_quote for live prices
  • Back-test trading strategies using forward-adjusted daily OHLCV data from get_kline_data with adjustment=1
  • Display intraday price charts using 1-minute or 5-minute K-line intervals from get_kline_data
  • Monitor market depth by consuming Level-2 bid/ask levels from get_order_book for selected A-share securities
  • Rank stocks by single-day turnover or change percent using sorted, filtered results from get_stock_list
  • Track sector rotation by comparing daily change percent across industry and concept groups from get_sector_list
  • Reconstruct intraday trade flow using tick direction (Buy/Sell/Neutral) from get_tick_data
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Eastmoney provide an official developer API?+
Eastmoney does not publish a documented public developer API. The data accessible through this Parse API covers the market data surfaces available on wap.eastmoney.com.
What does `get_kline_data` return for the `adjustment` parameter, and what values are valid?+
adjustment controls price adjustment for corporate actions. Pass 0 for raw (unadjusted) prices, 1 for forward adjustment (prices adjusted toward the present), and 2 for backward adjustment. If omitted, unadjusted data is returned. All OHLCV fields in the klines array reflect the chosen adjustment method.
Is the order book data available outside market hours?+
The get_order_book endpoint returns the current bid and ask levels, but the bids and asks arrays may be empty outside regular A-share trading hours (weekdays 09:30–15:00 CST). The price, code, and name fields are still returned. Plan polling logic accordingly if you need order book depth only during active sessions.
Does the API cover Hong Kong (HKEx) or US-listed Chinese stocks?+
The current endpoints are scoped to Eastmoney's A-share market data (Shanghai and Shenzhen). Hong Kong equities, ADRs, and US-listed Chinese stocks are not covered by the existing endpoints. You can fork the API on Parse and revise it to add endpoints targeting those market segments.
Does `get_tick_data` return a full historical tick archive or only recent session data?+
get_tick_data returns ticks from the most recent trading session only — it is not a historical tick archive. The limit parameter caps how many of the most recent prints are returned within that session. Historical intraday granularity beyond the current session is available through get_kline_data at 1-minute intervals. If you need multi-session tick history, you can fork the API on Parse and revise it to add that endpoint.
Page content last updated . Spec covers 7 endpoints from wap.eastmoney.com.
Related APIs in FinanceSee all →
fund.eastmoney.com API
Search and analyze Chinese mutual funds with detailed information including current rankings, historical net asset values, portfolio holdings, and dividend distributions. Track fund performance, compare fund details, and make informed investment decisions using comprehensive fund data from EastMoney.
xuangu.eastmoney.com API
Search and filter stocks using natural language queries, then refine your results with technical, fundamental, and popularity-based conditions tailored to your investment strategy. Access real-time trending queries, hot stock screening conditions, and community discussions to discover what other investors are watching.
hkex.com.hk API
Access real-time stock quotes, track market indices, view historical charts, and search for securities listed on the Hong Kong Stock Exchange. Stay informed with live company announcements and daily quotation reports to make better trading decisions.
sse.com.cn API
Monitor Shanghai Stock Exchange market activity with real-time equity quotes, index performance data, and daily trading statistics. Search for specific securities and view comprehensive market overviews to track stock prices and exchange trends.
barchart.com API
Monitor live stock quotes and commodity prices, analyze options chains with gamma exposure data, and access historical market time series to track top-performing stocks. Use real-time and historical data to make informed trading and investment decisions across equities and commodities.
stockanalysis.com API
Access comprehensive stock market data including real-time financials, income statements, statistics, and IPO calendars to research individual stocks and identify market movers. Search stocks, view detailed overviews, and monitor premarket activity all in structured, easy-to-use format.
guba.eastmoney.com API
Access Chinese stock discussion posts and comments from Eastmoney's community platform to monitor investor sentiment, search board discussions, and retrieve detailed post information and stock board metadata. Get real-time insights into what traders are discussing about specific stocks through posts, replies, and board analytics.
yahoofinance.com API
Access live stock quotes, historical price data, company profiles, and financial news for any ticker symbol. Supports real-time market data, OHLCV history across configurable intervals, detailed company fundamentals, and news aggregation across global exchanges.