A VPS is sixty dollars a year. My own time is not free, and that is the only number in this comparison that decides anything.
So I priced it properly instead of arguing about it. Thirteen runs and six builds on the platform came to $0.0264649 — $0.0102378 of run usage, $0.0162271 of build usage. Divide by thirteen and a run costs about $0.0008.
A full-market sweep is 800 records, 703,468 bytes. Call it 0.0007 GB. At $0.05/GB for internal transfer that is $0.000035 of bandwidth per sweep. Run it every day for a year: 365 × $0.0008 ≈ $0.29 of compute, and $0.013 of transfer.
Even if a real sweep costs eight times my measured tiny test run, the year lands at $2.35. The VPS is $60 and does nothing until you write the parser.
Now the honest half. Four hours a month of my own attention, at fifty dollars an hour, is $2,400 a year. That is the actual price of self-hosting this, and no amount of free JSON changes it.
The two free sources, side by side
| Eastmoney | Xueqiu | |
|---|---|---|
| Auth | none | cookie bootstrap (xq_a_token) |
| Fields per record | 30 | 40 |
| Bytes per record | ~879 | ~1,154 |
| Bulk listing | yes (paged, 100/page) | no (symbols you name) |
| Capital flow | yes (5 buckets) | no |
| Valuation history | PE, PB only | PE ttm/lyr/forecast, EPS, NAVPS, dividend yield |
| 52-week range | no | yes |
| Timestamp | one per run | one per symbol |
Those per-record figures are measured, not estimated. The Eastmoney board pull wrote 800 records and 703,468 bytes on 2026-11-29; the Xueqiu quote pull wrote 5 records and 5,770 bytes the same day. Same market, same weekend, two different shapes of the same information.
Before you spend anything: I pulled the same five A-shares from both platforms inside the same minute and diffed the closes. 平安银行 12.23, 贵州茅台 1472.36, 宁德时代 215.89, 招商银行 42.58, 比亚迪 76.13. Zero difference on all five.
End-of-day accuracy is not what you are buying.
Coverage and freshness are. Those are the two things that actually differ between sources, and neither one shows up in a closing price.
Eastmoney: breadth
Eastmoney wins on breadth. One call with fs=m:0+t:6,m:0+t:80,m:1+t:2,m:1+t:23 and pz=100 gives you a page of the entire Shanghai + Shenzhen + ChiNext + STAR universe with price, volume, turnover, PE, PB, market cap and the five-level capital flow split.
import requests
UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36")
def board(pages=8, size=100):
"""Top gainers across SSE + SZSE + ChiNext + STAR."""
url = "http://push2.eastmoney.com/api/qt/clist/get"
rows = []
for pn in range(1, pages + 1):
r = requests.get(url, params={
"pn": pn, "pz": size, "po": 1, "np": 1, "fltt": 2, "invt": 2,
"fid": "f3", "fs": "m:0+t:6,m:0+t:80,m:1+t:2,m:1+t:23",
"fields": "f12,f14,f2,f3,f5,f6,f9,f20,f23,f62",
}, headers={"User-Agent": UA, "Referer": "https://quote.eastmoney.com/"},
timeout=25)
diff = (r.json().get("data") or {}).get("diff") or []
if not diff:
break
rows += diff
return rows
data = board()
print(len(data), data[0]["f12"], data[0]["f14"], data[0]["f2"], data[0]["f3"])
# 800 300663 科蓝软件 6.64 20.07
Turnover on that first row was 330,605,108.52 CNY, market cap 3,176,980,648 CNY, main net inflow 61,611,874 CNY. It all lands in one flat dict, which is why quant people like it: one request, one DataFrame, done.
The catch is that everything is a column id. f62 is main net inflow, f9 is dynamic PE, and neither fact is documented anywhere official. The - sentinel for a suspended ticker is undocumented too — pass it to float() and the batch dies on one halted name out of 800.
Xueqiu: depth per symbol
Xueqiu is the opposite trade. You name the symbols, it hands back a much richer per-stock record.
import requests
UA = ("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 "
"(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36")
s = requests.Session()
s.headers.update({"User-Agent": UA, "Accept": "application/json, text/plain, */*",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8"})
# Without this the API answers 400. You do not log in — the homepage
# just plants xq_a_token / xqat cookies on first contact.
s.get("https://xueqiu.com/", timeout=20)
assert "xq_a_token" in s.cookies
r = s.get("https://stock.xueqiu.com/v5/stock/quote.json",
params={"symbol": "SH600519", "extend": "detail"},
headers={"Referer": "https://xueqiu.com/"}, timeout=20)
q = r.json()["data"]["quote"]
print(q["name"], q["current"], q["pe_ttm"], q["dividend_yield"])
# 贵州茅台 1472.36 22.402 3.642
A real record from that run:
{
"symbol": "SH600519",
"name": "贵州茅台",
"current": 1472.36,
"percent": 0.23,
"open": 1469.99,
"high": 1481.41,
"low": 1452.99,
"last_close": 1469.0,
"high_52w": 1531.7472,
"low_52w": 1151.01,
"ytd_percent": 9.44,
"volume": 3980835.0,
"amount": 5849112431.0,
"turnover_rate": 0.32,
"market_capital": 1840570146048.0,
"pe_ttm": 22.402,
"pe_lyr": 22.359,
"pe_forecast": 21.413,
"pb": 6.787,
"eps": 65.72,
"navps": 216.9496,
"dividend_yield": 3.642,
"issue_date": "2001-08-26T16:00:00+00:00",
"market_status": "休市",
"quoted_at": "2026-11-27T07:00:00+00:00",
"url": "https://xueqiu.com/S/SH600519"
}
pe_forecast, eps and navps are the reason to bother. You cannot derive a forward PE from a quote board. Neither can you get dividend_yield — 4.98 for 平安银行, 3.832 for 宁德时代 in the same batch.
Freshness is per-symbol, not per-run
Look at quoted_at across those five rows: 平安银行 07:34:12Z, 贵州茅台 07:00:00Z, 招商银行 07:00:00Z, 宁德时代 07:34:15Z, 比亚迪 07:34:57Z. One scrape, four different quote times. Xueqiu refreshes per symbol as trades print, and thin names lag behind liquid ones.
If you build intraday logic on this, key off quoted_at, not your own scraped_at. I learned that with a moving-average signal that fired twice on the same tick, because two rows carried identical timestamps and my dedupe key was the pair of them.
Also notice market_status: "休市". That run landed on a Sunday. Every number in it is Friday's close, served without an error, and if you do not check the status field you will compute a live signal out of three-day-old prices.
The capacity caps nobody quotes you
The buy side has limits too, and they are the ones that bite at scale rather than at the till.
Six builds fired in parallel on a FREE plan failed with 402 actor-memory-limit-exceeded — six times 4096MB against a 16GB ceiling. Serialising them fixed it. Run concurrency on the same plan is 5, so a fan-out job needs a semaphore whether you wrote the scraper or rented it.
And the free tier is $5 a month with 7-day data retention, which means the retention window, not the price, decides your backfill strategy. Mine cost $0.0264649 to find that out.
Which one do you actually need
- Screening the whole market: Eastmoney. Xueqiu cannot enumerate; you would need the symbol list from somewhere else first.
- Fundamentals for a shortlist: Xueqiu. 40 fields beat 30 when half the extra ones are valuation ratios.
- Watching capital rotation: Eastmoney, because the super-large / large / medium / small buckets are right there.
- Anything with 52-week context: Xueqiu, and Eastmoney has no substitute.
If you want both without maintaining two scrapers, they are packaged separately: Eastmoney Stock Scraper on Apify and Xueqiu Stock Scraper on Apify. Same field names as the JSON above, so a join on code is trivial.
What I have not verified: the commercial vendors. Wind, Choice and the paid tiers of the Chinese aggregators want a contract and a domestic entity, and I never had one to test against. If a vendor quotes you a per-seat price for A-share EOD data, the free pair above is the honest baseline — five out of five exact matches is a hard number to argue with.
Next step: run both snippets for the same three tickers on a trading day and diff the closes yourself. If they disagree by more than a tick, one of the two changed its schema, and you want to find that out on a Tuesday morning rather than inside a monthly report.
Top comments (0)