Xueqiu (雪球)
Overview
Chinese finance and social investing platform. Stock quotes, order book, industry comparisons, market events, and social discussion feed.
Workflows
Search and inspect a stock
searchStocks(q) → list[].code (e.g. SH600519)
getStockQuote(symbol=code) → real-time price, volume, market cap
getOrderBook(symbol=code) → bid/ask depth at 5 levels
Analyze stock history and fundamentals
searchStocks(q) → list[].code
getStockKline(symbol=code, begin, period) → historical candlestick data (OHLCV)
getStockFinancials(symbol=code) → ROE, EPS, revenue, net profit per period
Community sentiment on a stock
searchStocks(q) → list[].code
getStockComments(symbol=code) → user posts and discussions about the stock
Compare industry peers
searchStocks(q) → list[].code
getIndustryStocks(code ← searchStocks) → all stocks in same industry with price, PE, market cap
Browse market activity
getHotEvents → trending market topics with heat scores
getTimeline → social discussion feed with posts and authors
Track watchlist
getWatchlist(pid) → user's followed stocks with stocks[].symbol, live prices (requires login)
Operations
| Operation |
Intent |
Key Input |
Key Output |
Notes |
| searchStocks |
search stocks by keyword |
q |
code, name, exchange, current, percentage |
entry point |
| getStockQuote |
real-time stock quote |
symbol ← searchStocks.code |
current, percent, chg, volume, market_capital, high, low |
supports batch (comma-separated) |
| getOrderBook |
bid/ask order book |
symbol ← searchStocks.code |
bp1-5/bc1-5 (bids), sp1-5/sc1-5 (asks) |
A-share stocks only |
| getStockKline |
candlestick chart data |
symbol ← searchStocks.code, begin (ms timestamp), period |
column names + OHLCV data arrays |
periods: day/week/month/1m-120m |
| getStockFinancials |
financial indicators |
symbol ← searchStocks.code, type (Q1-Q4/all), count |
avg_roe, basic_eps, total_revenue, net_profit, gross_margin |
CN A-share stocks |
| getStockComments |
stock discussion feed |
symbol ← searchStocks.code, count, sort, source |
posts with description, author, reply_count, fav_count |
paginated |
| getWatchlist |
user's stock watchlist |
pid (-1 for default) |
stocks[].symbol, name, current, percent, market_capital |
requires login |
| getHotEvents |
trending market events |
count (optional) |
tag, hot, status_count, content |
entry point |
| getTimeline |
hot discussion feed |
since_id, max_id, size |
posts with title, description, author, timestamps |
paginated via next_max_id |
| getIndustryStocks |
industry peer stocks |
code ← searchStocks.code |
symbol, name, current, percentage, pe_ttm, marketCapital |
|
Quick Start
# Search for a stock
openweb xueqiu exec searchStocks '{"q":"茅台","count":10}'
# Get real-time quote (supports batch: "SH600519,AAPL")
openweb xueqiu exec getStockQuote '{"symbol":"SH600519"}'
# Get order book depth
openweb xueqiu exec getOrderBook '{"symbol":"SH600519"}'
# Get K-line chart data (30 days before timestamp)
openweb xueqiu exec getStockKline '{"symbol":"SH600519","begin":1712505600000,"period":"day","count":-30}'
# Get financial indicators (last 5 annual reports)
openweb xueqiu exec getStockFinancials '{"symbol":"SH600519","type":"Q4","count":5}'
# Get stock community discussion
openweb xueqiu exec getStockComments '{"symbol":"SH600519","count":10,"sort":"time"}'
# Get user's watchlist (requires login)
openweb xueqiu exec getWatchlist '{"pid":-1,"category":1,"size":100}'
# Get hot market events
openweb xueqiu exec getHotEvents '{"count":10}'
# Browse social timeline
openweb xueqiu exec getTimeline '{"since_id":-1,"max_id":-1,"size":15}'
# Get industry peers
openweb xueqiu exec getIndustryStocks '{"code":"SH600519","type":1,"size":30}'
1---2name: xueqiu3description: Xueqiu (雪球)4---5# Xueqiu (雪球)67## Overview8Chinese finance and social investing platform. Stock quotes, order book, industry comparisons, market events, and social discussion feed.910## Workflows1112### Search and inspect a stock131. `searchStocks(q)` → `list[].code` (e.g. SH600519)142. `getStockQuote(symbol=code)` → real-time price, volume, market cap153. `getOrderBook(symbol=code)` → bid/ask depth at 5 levels1617### Analyze stock history and fundamentals181. `searchStocks(q)` → `list[].code`192. `getStockKline(symbol=code, begin, period)` → historical candlestick data (OHLCV)203. `getStockFinancials(symbol=code)` → ROE, EPS, revenue, net profit per period2122### Community sentiment on a stock231. `searchStocks(q)` → `list[].code`242. `getStockComments(symbol=code)` → user posts and discussions about the stock2526### Compare industry peers271. `searchStocks(q)` → `list[].code`282. `getIndustryStocks(code ← searchStocks)` → all stocks in same industry with price, PE, market cap2930### Browse market activity311. `getHotEvents` → trending market topics with heat scores322. `getTimeline` → social discussion feed with posts and authors3334### Track watchlist351. `getWatchlist(pid)` → user's followed stocks with `stocks[].symbol`, live prices (requires login)3637## Operations3839| Operation | Intent | Key Input | Key Output | Notes |40|-----------|--------|-----------|------------|-------|41| searchStocks | search stocks by keyword | `q` | code, name, exchange, current, percentage | entry point |42| getStockQuote | real-time stock quote | `symbol` ← searchStocks.code | current, percent, chg, volume, market_capital, high, low | supports batch (comma-separated) |43| getOrderBook | bid/ask order book | `symbol` ← searchStocks.code | bp1-5/bc1-5 (bids), sp1-5/sc1-5 (asks) | A-share stocks only |44| getStockKline | candlestick chart data | `symbol` ← searchStocks.code, `begin` (ms timestamp), `period` | column names + OHLCV data arrays | periods: day/week/month/1m-120m |45| getStockFinancials | financial indicators | `symbol` ← searchStocks.code, `type` (Q1-Q4/all), `count` | avg_roe, basic_eps, total_revenue, net_profit, gross_margin | CN A-share stocks |46| getStockComments | stock discussion feed | `symbol` ← searchStocks.code, `count`, `sort`, `source` | posts with description, author, reply_count, fav_count | paginated |47| getWatchlist | user's stock watchlist | `pid` (-1 for default) | stocks[].symbol, name, current, percent, market_capital | requires login |48| getHotEvents | trending market events | `count` (optional) | tag, hot, status_count, content | entry point |49| getTimeline | hot discussion feed | `since_id`, `max_id`, `size` | posts with title, description, author, timestamps | paginated via next_max_id |50| getIndustryStocks | industry peer stocks | `code` ← searchStocks.code | symbol, name, current, percentage, pe_ttm, marketCapital | |5152## Quick Start5354```bash55# Search for a stock56openweb xueqiu exec searchStocks '{"q":"茅台","count":10}'5758# Get real-time quote (supports batch: "SH600519,AAPL")59openweb xueqiu exec getStockQuote '{"symbol":"SH600519"}'6061# Get order book depth62openweb xueqiu exec getOrderBook '{"symbol":"SH600519"}'6364# Get K-line chart data (30 days before timestamp)65openweb xueqiu exec getStockKline '{"symbol":"SH600519","begin":1712505600000,"period":"day","count":-30}'6667# Get financial indicators (last 5 annual reports)68openweb xueqiu exec getStockFinancials '{"symbol":"SH600519","type":"Q4","count":5}'6970# Get stock community discussion71openweb xueqiu exec getStockComments '{"symbol":"SH600519","count":10,"sort":"time"}'7273# Get user's watchlist (requires login)74openweb xueqiu exec getWatchlist '{"pid":-1,"category":1,"size":100}'7576# Get hot market events77openweb xueqiu exec getHotEvents '{"count":10}'7879# Browse social timeline80openweb xueqiu exec getTimeline '{"since_id":-1,"max_id":-1,"size":15}'8182# Get industry peers83openweb xueqiu exec getIndustryStocks '{"code":"SH600519","type":1,"size":30}'84```