ARData Python SDK - A-share market data client
Project description
ARData SDK
Python SDK for ARQuant market data platform.
Install
pip install ardata-sdk
Quick Start
import ardata_sdk as ardata
# Initialize with your API key and server URL
ardata.init(token="your-api-key", base_url="https://ardata.example.com")
# Get daily price data
df = ardata.get_price(["000001.XSHE", "600519.XSHG"],
start_date="2024-01-01",
end_date="2024-12-31",
frequency="daily",
fields=["open", "close", "high", "low", "volume"],
fq="pre")
# Get all A-share securities
securities = ardata.get_all_securities()
# Get trade days
trade_days = ardata.get_trade_days(start_date="2024-01-01", end_date="2024-12-31")
# Get industry info
industries = ardata.get_industry(["000001.XSHE"])
API Reference
| Function | Description |
|---|---|
get_price() |
Historical OHLCV data |
get_all_securities() |
List all securities |
get_security_info() |
Security details |
get_trade_days() |
Trading calendar |
get_industry() |
Industry classification |
get_index_stocks() |
Index constituents |
get_fundamentals() |
Financial data (valuation, balance sheet, etc.) |
get_money_flow() |
Capital flow data |
get_billboard_list() |
Dragon-tiger board data |
get_factor_values() |
Alpha factors |
history() / attribute_history() |
JQData-compatible history APIs |
get_ticks() |
Tick-level data |
finance.run_query() |
Financial table query DSL |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ardata_sdk-1.0.0.tar.gz
(15.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ardata_sdk-1.0.0.tar.gz.
File metadata
- Download URL: ardata_sdk-1.0.0.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e7f5f239f3e5c30a528be12cfea6581ad765995971359a64d3f169fa0b4c1d0
|
|
| MD5 |
1db06a2adb2ecf3ef06392ed5b7168b0
|
|
| BLAKE2b-256 |
b4b3ed79677c4b1d9a8991c131a6a5a8f786c5136e8108f80cfc6c6a5a741553
|
File details
Details for the file ardata_sdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ardata_sdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82e59982610cb1c1af13f246160d9451a5b14104e74222b3450c38b02806402a
|
|
| MD5 |
07bc9b311e99b401f9c2835271792513
|
|
| BLAKE2b-256 |
80abad18b86ab93488fc85cfb2ffccd134ac4b3dd7ca9b61fa1afd0f01fb3473
|