Skip to main content

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")

Metadata

Release files for ardata-sdk 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ardata-sdk 1.1.0
File Size Uploaded Provenance
ardata_sdk-1.1.0.tar.gz 16.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ardata-sdk 1.1.0
File Interpreter ABI Platform
ardata_sdk-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 39.4 kB

Release files / ardata_sdk-1.1.0.tar.gz

Download URL ardata_sdk-1.1.0.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cc2afeb50647a83335ba568cdd70462b6a54a2d0036329dce87fc5782b983a30
BLAKE2b-256 checksum
How to use checksums
b1c5613f910c2dd161156756ba4e1fb5d9382c4bf14bc1b397b940ab0be8bb84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / ardata_sdk-1.1.0-py3-none-any.whl

Download URL ardata_sdk-1.1.0-py3-none-any.whl
Size 22.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b38ec9a8f3bf0992fbb181ae61f641018521254360f917f6944b799f1811ba9d
BLAKE2b-256 checksum
How to use checksums
ae464bbbb2b8622d134cdf601b9376be403db98a5df23cb1b478be0bf7bbc1e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Security for ardata-sdk 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page