Star Digital Financial Data
Paste the following prompt into your AI chat to install this skill:
Please install @org-rwhv0nty/ad-api according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem it addresses
When building pipelines for equity, fund, convertible bond, futures, and option data, teams often face scattered sources, inconsistent definitions, and repeated historical pulls. AmazingData wraps financial data from China Galaxy Securities into a Python API, using BaseData, MarketData, and InfoData to separate reference data, market data, and fundamentals, which fits notebook, backtesting, and factor work.
Core objects and workflow
- Three objects:
ad.BaseData()covers securities code lists, trading calendars, adjustment factors, and ETF creation/redemption lists;ad.MarketData(calendar)covers historical K-lines and snapshots and requires a calendar;ad.InfoData()covers financial statements, earnings notices, shareholders, margin trading, dragon-tiger lists, options, ETFs, indexes, convertible bonds, bonds, and announcements. - Parameters and returns: dates usually use eight-digit
YYYYMMDDintegers, securities codes use exchange-suffixed formats such as000001.SZand600000.SH; most endpoints returnpandas.DataFrame, while some return adictkeyed by code. - Fetching modes: local caching uses
local_pathplusis_localto read local HDF5 first and refill from the server when missing; date-range mode usesbegin_dateplusend_dateand fetches from the server without local caching. - Authentication: set
AD_USERNAME,AD_PASSWORD,AD_HOST, andAD_PORT, then callad.login()before querying; credentials and server details are usually issued by the account-opening branch.
Boundaries
- Historical depth: equities trace back to 2013, futures to 2010, and options to 2015.
MarketDatamust be initialized with a trading calendar rather than empty arguments.- Local caching and date-range fetching are mutually exclusive; local caching may require substantial disk space.
- The service limits single active login, so one account can maintain only one concurrent session.
Use Cases
- Pull historical K-lines with `query_kline` to compute factors for an equity backtest.
- Use ETF endpoints to fetch creation/redemption lists, shares, and `IOPV` for a fund dashboard.
- Retrieve convertible bond issuance, conversion, call, and put terms for credit research.
- Use `InfoData` to fetch financial statements, earnings notices, and top-ten shareholders for issuer summaries.
Best For
- Quant researchers who need Python APIs for equity, ETF, and convertible-bond market and terms data.
- Financial data engineers who want to integrate quote, financial, shareholder, and margin endpoints into pipelines.
- Credit researchers who need convertible-bond issuance, conversion, call, put, and bond yield data.
- Broker or fund IT engineers who need to deploy authenticated `AmazingData` access with local caching.
Related Skills
A local A-share quant workspace for quotes, k-lines, conditional screening, MA/RSI backtesting, simulated trading, and risk control via REST APIs.
Systematically identify and evaluate the economic moats of listed companies using the Tang Shu Fang investment methodology for long-term investment analysis.
A skill that converts natural language questions into A-stock data queries and returns verifiable structured analysis conclusions, covering multi-dimensional analysis of market trends, fundamentals, and news.
An AI financial copilot by Wind, integrating financial databases and multimodal analysis to provide end-to-end support across investment research, asset allocation, risk control, quant, and report generation.