API Documentation
Complete reference for the EasyQuote REST API and WebSocket streaming interface.
Authentication
All API requests require an API key in the request header. Create your key in the Dashboard.
Header
x-api-key: eq_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Key Format
Prefix eq_ + 32 hex chars. The full key is shown only once on creation — store it safely.
Rate Limits
| Plan | Daily Requests |
|---|---|
| Free | 100 |
| Pro | 10,000 |
| Expert | 100,000 |
Exceeding the limit returns 429 Too Many Requests.
Quick Start
Install Python SDK
pip install easyquote
Set your API key
export EASYQUOTE_API_KEY="eq_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Python Example
from easyquote import EasyQuoteClient
# 初始化客户端(读取环境变量 EASYQUOTE_API_KEY)
client = EasyQuoteClient()
# 实时行情(A股 / 港股 / 美股)
quote = client.get_quote("600519.SH")
print(quote.name, quote.price, quote.change_pct)
# 日线 K 线,最近 100 根
klines = client.get_klines("600519.SH", period="daily", count=100)
# 港股公司概况
company = client.get_company("00700.HK")
print(company.name, company.industry)
# 初始化客户端(读取环境变量 EASYQUOTE_API_KEY)
client = EasyQuoteClient()
# 实时行情(A股 / 港股 / 美股)
quote = client.get_quote("600519.SH")
print(quote.name, quote.price, quote.change_pct)
# 日线 K 线,最近 100 根
klines = client.get_klines("600519.SH", period="daily", count=100)
# 港股公司概况
company = client.get_company("00700.HK")
print(company.name, company.industry)
Base URL: /api/v1
API Reference
Auto-generated from the OpenAPI spec — always in sync with the backend.
Full interactive API documentation with all endpoints, parameters, and examples.
Open API Reference ↗