Discover/Com API
live

Com APIsse.com.cn

Access SSE market overviews, real-time equity quotes, index performance, daily board statistics, and security search via a single structured API.

Endpoint health
verified 21h ago
get_security_snapshot
get_sse_index_overview
get_market_overview
get_stock_trading_overview
search_securities
7/7 passing latest checkself-healing
Endpoints
7
Updated
22d ago

What is the Com API?

This API exposes 7 endpoints covering Shanghai Stock Exchange market data — from board-level trading statistics to real-time per-security snapshots. Use get_realtime_equity_list to pull paginated live quotes for all SSE-listed equities, or get_security_snapshot to retrieve bid/ask depth, price limits, and trading status for a single 6-digit security code. Market overviews, index metadata, and a full-text security search are also included.

Try it
Snapshot date in YYYYMMDD format. Omitting returns the latest available trading day.
api.parse.bot/scraper/091705e2-bf6a-48a4-928e-a06326011632/<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/091705e2-bf6a-48a4-928e-a06326011632/get_market_overview' \
  -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 sse-com-cn-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: SSE Market Data SDK — bounded, re-runnable; every call capped."""
from parse_apis.sse_market_data_api import SSE, SecurityNotFound

client = SSE()

# List market products — one call gives all product categories for the latest day.
for product in client.marketproducts.list(limit=5):
    print(product.product_name, product.total_trade_amt, product.security_num)

# List stock board trading stats — shows Main A, Main B, STAR, combined.
for board in client.stockboards.list(limit=5):
    print(board.product_code, board.trade_amt, board.avg_pe_rate)

# Search for a security, then drill into its real-time snapshot.
security = client.securities.search(query="pfyx", limit=1).first()
if security:
    snap = security.snapshot.get()
    print(snap.name, snap.last, snap.chg_rate, snap.volume)

# Typed error handling — catch SecurityNotFound on an invalid code.
try:
    bad_snap = client.snapshots.get(code="999999")
    print(bad_snap.name, bad_snap.last)
except SecurityNotFound as exc:
    print(f"Security not found: {exc.code}")

# Browse real-time equity quotes — first few listed equities.
for quote in client.equityquotes.list(begin=0, end=3, limit=3):
    print(quote.code, quote.name, quote.last, quote.chg_rate)

print("exercised: marketproducts.list / stockboards.list / securities.search / security.snapshot.get / snapshots.get / equityquotes.list")
All endpoints · 7 totalmissing one? ·

Get overall market statistics across stocks, bonds, and funds. Returns trading amounts, total/negotiable market values, and security counts for each product type on a given trading day. When no date is supplied the latest available trading day is used.

Input
ParamTypeDescription
datestringSnapshot date in YYYYMMDD format. Omitting returns the latest available trading day.
Response
{
  "type": "object",
  "fields": {
    "items": "array of market product summaries with PRODUCT_NAME, TOTAL_VALUE, NEGO_VALUE, SECURITY_NUM, TOTAL_TRADE_AMT, TRADE_DATE"
  },
  "sample": {
    "data": {
      "items": [
        {
          "NEGO_VALUE": "618705.37",
          "TRADE_DATE": "20260610",
          "TOTAL_VALUE": "665722.73",
          "PRODUCT_NAME": "股票",
          "SECURITY_NUM": "2355",
          "TOTAL_TRADE_AMT": "12283.66"
        }
      ]
    },
    "status": "success"
  }
}

About the Com API

Market Overviews and Board Statistics

get_market_overview returns aggregate statistics across stocks, bonds, and funds for any trading day you specify in YYYYMMDD or YYYY-MM-DD format — fields include TOTAL_VALUE, NEGO_VALUE, SECURITY_NUM, and TOTAL_TRADE_AMT per product type. For equity-specific breakdowns, get_stock_trading_overview splits results by board: Main A, Main B, STAR Market, and combined. Each row carries TRADE_VOL, TRADE_AMT, AVG_PE_RATE, TOTAL_VALUE, and NEGO_VALUE, making it straightforward to compare board-level valuations on a given date.

Index Data

get_sse_index_overview returns current snapshot data for key SSE indices — composite, STAR, and sector indices — with fields like CLOSE_POINT, PE_RATIO, TRADE_AMT, and KIND_NUM (constituent stock count). If you need static metadata rather than live performance, get_sse_index_list provides the full catalogue: indexCode, indexFullName, indexNameEn, indexBaseDay, indexBasePoint, numOfStockes, and methodology descriptions. Neither endpoint accepts date or filter parameters; they return the full current set.

Real-Time Quotes and Security Lookup

get_realtime_equity_list serves paginated live quotes for all SSE equities. Pass begin and end integers to page through results; each record in the list array includes code, name, open, high, low, last price, previous close, change rate, volume, and amount. For a focused view, get_security_snapshot accepts a single required code parameter (e.g. 600000) and returns the full snap array with bid/ask depth and price limit fields alongside standard OHLC data.

search_securities accepts a query string — a 6-digit code, a Chinese company name, or a pinyin abbreviation such as pfyx — and returns up to 50 matching results with code, name, and pinyin fields. This is useful for resolving a company name to its SSE code before querying the snapshot or trading history endpoints.

Reliability & maintenanceVerified

The Com API is a managed, monitored endpoint for sse.com.cn — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when sse.com.cn 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 sse.com.cn 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
21h 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
  • Track real-time price changes across all SSE-listed equities using get_realtime_equity_list with pagination.
  • Monitor STAR Market vs. Main Board valuation spreads by comparing AVG_PE_RATE from get_stock_trading_overview.
  • Build an index dashboard using CLOSE_POINT and PE_RATIO fields from get_sse_index_overview.
  • Resolve company names or pinyin abbreviations to security codes via search_securities before making downstream queries.
  • Pull historical daily market totals — total/negotiable market cap and trade amounts — using get_market_overview with a date parameter.
  • Display bid/ask depth and trading status for a single stock using get_security_snapshot with a 6-digit SSE code.
  • Enumerate all SSE indices with base dates and constituent counts using get_sse_index_list for index construction or backtesting setup.
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 the Shanghai Stock Exchange provide an official developer API?+
SSE does not publish a public developer API with documented endpoints, authentication, or an SDK. Data on sse.com.cn is intended for browser consumption. This Parse API provides structured programmatic access to the same data.
What does `get_security_snapshot` return beyond basic price data?+
get_security_snapshot returns a snap array that includes bid/ask depth, price limit levels (up and down), trading status flags, and change/change-rate fields alongside the standard open, high, low, last, volume, and amount values. You supply a single required code parameter — a 6-digit SSE security code such as 600000.
How does pagination work in `get_realtime_equity_list`?+
Pass integer values to the begin and end parameters to define the slice you want. The response object includes total (total equity count), begin, and end fields so you can calculate subsequent page ranges. Both parameters are optional; omitting them returns the default initial slice.
Does the API cover historical intraday tick data or candlestick (OHLCV) time series for individual stocks?+
Not currently. The API covers real-time snapshots via get_security_snapshot, paginated live quotes via get_realtime_equity_list, and daily board-level summaries via get_stock_trading_overview. Intraday tick history or per-security OHLCV time series are not exposed. You can fork this API on Parse and revise it to add the missing endpoint.
Are Shenzhen Stock Exchange (SZSE) or Beijing Stock Exchange securities covered?+
No. All endpoints are scoped exclusively to securities listed on the Shanghai Stock Exchange. SZSE- and BSE-listed instruments are not included. You can fork this API on Parse and revise it to target the equivalent data sources for those exchanges.
Page content last updated . Spec covers 7 endpoints from sse.com.cn.
Related APIs in FinanceSee all →
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.
wap.eastmoney.com API
Access real-time stock quotes, historical K-line charts at 1-minute intervals, and tick data for Chinese securities markets and beyond. Search specific securities, retrieve sector performance, view order books, and pull comprehensive stock lists to power your financial analysis and trading applications.
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.
hdfcsec.com API
Track real-time equity market movements by finding the most active NSE stocks, top gainers and losers, 52-week highs and lows, and detailed stock quotes. Search for specific stocks and get comprehensive market overviews to make informed investment decisions.
jse.co.za API
Access live JSE stock prices, company profiles, and market indices from the Johannesburg Stock Exchange. Search SENS announcements and view comprehensive market statistics to stay informed on JSE activity.
nseindia.com API
Track live NSE stock prices, monitor indices, analyze option chains, and access corporate announcements with real-time market data from India's National Stock Exchange. View equity quotes with full order books, identify top gainers/losers, analyze 52-week highs/lows, and explore historical price trends all in structured JSON format.
asx.com.au API
Access Australian Securities Exchange (ASX) market data, including equity prices, index summaries, company details, market announcements, and company directory listings. Retrieve upcoming IPO and float information alongside comprehensive data on all ASX-listed companies.
marketbeat.com API
Track comprehensive stock market data including real-time overviews, analyst ratings, earnings reports, insider trades, and institutional ownership across thousands of companies. Search stocks, analyze financial statements and profitability metrics, monitor short interest, explore options chains, and stay updated with market headlines and competitor analysis.