akshare-rs
100% pure Rust implementation of akshare — unified access to Chinese and global financial market data APIs.
Features
- Zero Python dependency — native Rust HTTP client, no FFI or subprocess calls
- Async-first — built on
tokio+reqwest - Comprehensive coverage — A-share, HK, US stocks, funds, bonds, futures, options, forex, crypto, macro data, and more
- Multiple data sources — Eastmoney, Sina, Tencent, Yahoo, Stooq, SEC EDGAR, Tushare
- Typed responses — all data returned as strongly-typed Rust structs
Quick Start
[]
= "0.1"
use AkShareClient;
# async
Supported Data
| Category | Examples |
|---|---|
| A-share | Quotes, candles, sectors, billboard, capital flow, financials, fundamentals |
| HK | Quotes, candles, news |
| US | Daily candles, quotes |
| Funds | ETF, LOF, ranked lists, holdings, manager info |
| Bonds | Government, corporate, convertible, yield curves |
| Futures | Domestic exchanges, spot prices, warehouse stocks, COT |
| Options | SSE, CZCE, CFFEX, commodity options |
| Forex | BOC rates, cross rates, real-time |
| Crypto | Bitcoin and major crypto data |
| Macro | China, US, EU, UK, Japan, Australia, Canada GDP/CPI/PMI |
| Index | CSI, SW, CNI, global indices, VIX |
| Economy | Events, articles, NLP sentiment, auto sales, box office |
| News | CCTV news, search aggregation |
Data Sources
| Provider | Coverage |
|---|---|
| Eastmoney | A-share search, quotes, klines, sectors, billboard, announcements, capital flow |
| Sina Finance | A-share real-time, US daily, bonds, forex |
| Tencent Finance | A-share/HK real-time quotes and klines |
| Yahoo Finance | HK/US/global stock charts |
| Stooq | US/global stock CSV data (fallback) |
| SEC EDGAR | US company fundamentals and filings |
| Tushare Pro | Chinese market daily data, financials, trade calendar |
MSRV
Rust 1.85 (edition 2024)
License
Licensed under either of MIT or Apache License, Version 2.0 at your option.