零配置 · 毫秒级响应 · 一站式A股数据接口
KLineAPI 提供 A 股实时行情 RESTful API,覆盖实时报价、五档盘口、分时K线、集合竞价、涨停板监控、全市场排行等核心功能。注册即用,毫秒级响应。
- Website: https://klineapi.com
- API Docs: https://klineapi.com/docs
- Free Register: https://klineapi.com/register
- CLI Tool: https://github.com/kraine2008-ux/klineapi-cli
# One-liner register
curl https://klineapi.com/v1/register
# Or register at: https://klineapi.com/register# Real-time quote
curl "https://klineapi.com/v1/quote?code=600519&key=YOUR_API_KEY"
# Today's limit-up stocks
curl "https://klineapi.com/v1/limit-up?key=YOUR_API_KEY"
# Market indices
curl "https://klineapi.com/v1/market?key=YOUR_API_KEY"import httpx
r = httpx.get("https://klineapi.com/v1/quote",
params={"code": "600519", "key": "YOUR_API_KEY"})
print(r.json())
# {'code': '600519', 'name': '贵州茅台', 'price': 1888.00, ...}pip install klineapi-cli
klineapi quote 600519
klineapi limit-up
klineapi market| Endpoint | Description |
|---|---|
GET /v1/quote |
Real-time quote (price, change, volume) |
GET /v1/orderbook |
Level-2 order book (bid/ask 5) |
GET /v1/intraday |
1-min intraday K-line data |
GET /v1/auction |
Call auction (open/close) |
GET /v1/limit-up |
Limit-up stocks monitor |
GET /v1/board |
Full market ranking by % change |
GET /v1/market |
Major indices (SH/SZ/ChiNext) |
GET /v1/register |
Get an API key instantly |
- Zero config - No software installation, just curl
- Millisecond response - Real-time aggregated data
- Full coverage - Shanghai, Shenzhen, Beijing, STAR, ChiNext
- Smart limit-up pool - Auto-filter by board type, exclude ST stocks
- Call auction - Open (9:15-9:25) and close (14:57-15:00) data
| Plan | Free | Pro | Enterprise |
|---|---|---|---|
| Price | $0 | $7/month | $42/month |
| Daily calls | 100 | 10,000 | 100,000 |
| Rate limit | 10/sec | 50/sec | 200/sec |
| All endpoints | Yes | Yes | Yes |
| Priority support | - | - | Yes |
| Feature | KLineAPI | Paid Terminals | Self-built |
|---|---|---|---|
| Setup time | 1 minute | Days | Days/weeks |
| Latency | Millisecond | Millisecond | Seconds |
| Cost | Free tier | $$$ | Server + dev |
| Reliability | High | High | Low |
| Code needed | 1 curl | - | 100s of lines |
If you find this useful, please give it a Star! ⭐