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="http://localhost:8000")
# 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 (daily/1m, with fq support) |
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 |
get_industries() |
List all industries |
get_concepts() |
List all concept boards |
get_mtss() |
Margin trading (融资融券) data |
get_extras() |
Extra info (ST status, paused flags) |
Client API (OOP)
from ardata_sdk.api.client import APIClient
client = APIClient(host="http://localhost:8000", token="your-jwt-token")
df = client.get_price(["000001.XSHE"], start_date="2024-01-01", end_date="2024-12-31")
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.1.0.tar.gz
(16.9 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.1.0.tar.gz.
File metadata
- Download URL: ardata_sdk-1.1.0.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc2afeb50647a83335ba568cdd70462b6a54a2d0036329dce87fc5782b983a30
|
|
| MD5 |
6d9446ff0c4ef75ca2402cee75e4930b
|
|
| BLAKE2b-256 |
b1c5613f910c2dd161156756ba4e1fb5d9382c4bf14bc1b397b940ab0be8bb84
|
File details
Details for the file ardata_sdk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: ardata_sdk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 22.5 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 |
b38ec9a8f3bf0992fbb181ae61f641018521254360f917f6944b799f1811ba9d
|
|
| MD5 |
a6ccf12ece5a470e0e9b0ba4052aa1a8
|
|
| BLAKE2b-256 |
ae464bbbb2b8622d134cdf601b9376be403db98a5df23cb1b478be0bf7bbc1e8
|