Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KLineAPI - A股实时行情 API

零配置 · 毫秒级响应 · 一站式A股数据接口

GitHub Stars GitHub Stars Website API Docs Register Python FastAPI

KLineAPI 提供 A 股实时行情 RESTful API,覆盖实时报价、五档盘口、分时K线、集合竞价、涨停板监控、全市场排行等核心功能。注册即用,毫秒级响应。


Quick Start

1. Get API Key

# One-liner register
curl https://klineapi.com/v1/register

# Or register at: https://klineapi.com/register

2. Call API

# 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"

Python

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, ...}

CLI (pip install)

pip install klineapi-cli
klineapi quote 600519
klineapi limit-up
klineapi market

API Endpoints

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

Features

  • 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

Pricing

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

Upgrade Plan


Why KLineAPI?

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

Contributing


If you find this useful, please give it a Star!

About

A股实时行情API - 免费注册即用,毫秒级响应

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages