Skip to main content

Standardized interface for Chinese financial market data, built on AKShare with unified data formats and simplified APIs

Project description

AKShare One

中文 | English

AKShare One is a data interface for obtaining Chinese A-shares, based on AKShare. It aims to simplify AKShare's usage and unify input/output formats from different data sources, making it easier to pass data to LLM.

✨ Features

  • 📊 Unified stock code formats across data sources
  • 🏗️ Standardized return data structures
  • 🛠️ Simplified API parameter design
  • ⏱️ Automatic timestamp and adjustment handling

🚀 Core Features

Function Interface
Historical data get_hist_data
Real-time quotes get_realtime_data
Stock news get_news_data
Financial data get_balance_sheet/get_income_statement/get_cash_flow
Futures data get_futures_hist_data/get_futures_realtime_data
Options data get_options_chain/get_options_realtime/get_options_hist
Internal transactions get_inner_trade_data
Basic stock info get_basic_info
Financial metrics get_financial_metrics
Technical indicators See indicators.py

📦 Quick Installation

pip install akshare-one

💻 Usage Example

from akshare_one import get_hist_data
from akshare_one.indicators import get_sma

# Get historical data
df = get_hist_data(
    symbol="600000",
    interval="day",
    adjust="hfq"
)

# Calculate 20-day Simple Moving Average
df_sma = get_sma(df, window=20)

📚 Documentation

Full API documentation is now available on GitHub Pages:

https://zwldarren.github.io/akshare-one/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akshare_one-0.4.1.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

akshare_one-0.4.1-py3-none-any.whl (56.7 kB view details)

Uploaded Python 3

File details

Details for the file akshare_one-0.4.1.tar.gz.

File metadata

  • Download URL: akshare_one-0.4.1.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for akshare_one-0.4.1.tar.gz
Algorithm Hash digest
SHA256 e0d321545c984596807b689050f00d2f6722d0c815cd4f67dd1cd5a80830658f
MD5 10a411e48daf3c6bc3bc69b94f12ab0d
BLAKE2b-256 bd9f729c8d227001b165cafed6536656fa07f7b0927f10a9eac979207468d7e6

See more details on using hashes here.

File details

Details for the file akshare_one-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: akshare_one-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 56.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for akshare_one-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e224b2b9175bcd4fb0335826434778ff4de39302e2c15b5ad663c3a1e5c488c
MD5 a9b77bb81b1ffa4ec13c01be197f28a6
BLAKE2b-256 a013ad66cc8438abe96e76adf9888c3d3ddd9affb3c814d6bbc643be350cb827

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page