DataBull — Claude Code Skill

Query A-share, Hong Kong and US data directly inside Claude Code, Cursor or any AI tool that supports Skills. Once installed, just ask in natural language.

1 One-click install

Run the command below in your project directory; the skill files are downloaded automatically into .claude/skills/databull/.

Terminal
curl -fsSL "https://www.databull.cn/skill/install?lang=en" | bash

2 Set your API Key

Sign up free to get an API Key, then set the environment variable.

Terminal
export DATABULL_API_KEY="your_api_key_here"

3 Start using it

Type /databull in Claude Code, then ask in natural language.

Example prompts
> /databull show me Ping An Bank's daily history over the last month
> /databull what does Kweichow Moutai's (600519) PE trend look like lately?
> /databull SW tier-1 sector moves today — which are up the most?
> /databull list every ETF whose name contains "new energy"

Supported data endpoints

All methods below are verified working against the live DataBull API. Capital flows, margin trading, dragon-tiger lists and chip distribution are not open yet and return empty results.

Index

Index daily history

OHLCV & change, from 2020

client.get_index_history()
Index

Index list

~10,600 indices, filter by market/class

client.get_index_list()
Index

Index search

Name/code keyword, relevance ranked

client.search_index()
Index

Index constituents

Constituents & weights, by weight desc

client.get_index_constituents()
US Index

US index history

S&P / Nasdaq / Dow, daily to monthly

client.get_us_index_history()
US Index

US index list

Paged, with quote availability flag

client.get_us_index_list()
US Index

US index search

By code / short name, relevance ranked

client.search_us_index()
Reference

A-share / ETF / index list

Full universe filtered by keyword/exchange

client.get_stock_list()
Stock

Stock basics

symbol / name / market / shares

client.get_stock_info()
Stock

Company profile

Company fundamentals

client.get_company_profile()
Quotes

Stock history

Daily / minute, from 2020

client.get_stock_history()
Financials

Stock financials

Balance / Income / CashFlow / PershareIndex

client.get_stock_financial_data()
US

US stock basics

US stock code basics

client.get_us_stock_info()
US

US stock history

US daily / minute

client.get_us_stock_history()
HK

HK stock basics

HK stock code basics

client.get_hk_stock_info()
HK

HK stock history

HK daily / minute

client.get_hk_stock_history()
ETF

ETF list

Filter by keyword / exchange

client.get_etf_list()
ETF

ETF basics

Scale / tracking index, etc.

client.get_etf_info()
ETF

ETF creation/redemption

Live PCF

client.get_etf_pcf()
ETF

ETF constituents

Holding detail

client.get_etf_composition()
Quotes

ETF history

ETF daily

client.get_etf_history()
News Flash

News flash

Cailian / Jin10 / Sina sources

client.get_news_flash()
News Flash

Flash sources

List of available sources

client.get_news_flash_sources()
News

Market news

Paginated news list

client.get_market_news()
News

News detail

Single news detail

client.get_market_news_detail()
Sentiment

Fear & Greed Index

Daily market sentiment

client.get_fear_greed()
Sector

SW sector change

SW tier-1 / 2 / 3

client.get_sector_data()
Sector

SW sector catalog

Synced weekly from Tushare

client.get_sector_catalog()
Realtime

Stock realtime tick

Intraday order book

client.get_realtime()
Calendar

Trading calendar

SSE/SZSE trading days

client.get_trading_calendar()

Compatible platforms

Claude Code | Cursor | Windsurf | WorkBuddy | CodeX | Any AI tool that supports Skills