Skip to main content

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

Project description

AKShare Two

中文 | English

Note: This project is forked from AKShare One but uses akshare-two as the package name for personal use and distribution.

AKShare Two is a direct API data interface for obtaining Chinese A-shares. It provides direct connections to data sources (EastMoney, Sina, Xueqiu) without depending on the AKShare library, offering better control and avoiding dependency conflicts.

✨ 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
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-two

💻 Usage Example

from akshare_two import get_hist_data
from akshare_two.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-two/

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_two-1.0.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

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

akshare_two-1.0.0-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file akshare_two-1.0.0.tar.gz.

File metadata

  • Download URL: akshare_two-1.0.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for akshare_two-1.0.0.tar.gz
Algorithm Hash digest
SHA256 43cbff14a9b513487761d1b4a34f22a8106f4d7d4ef31cdba2d77d28729b4949
MD5 14a8e9d6530cdfeb97d8917bf5a5d062
BLAKE2b-256 fcd28fd714a14715b24a403aeec22d61b969c8c28a681303b5c1345ac38b68ab

See more details on using hashes here.

File details

Details for the file akshare_two-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for akshare_two-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57d2c44d0ad5ed3b4520c96792a4e0f21e277a405991319367ee6059aa55df90
MD5 f67ff228423508c85cfc696cf3855461
BLAKE2b-256 02bc71b7fe240ec0da7e74a00575c2eb1fb2b0eab9986086ee4d81202789c426

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