Introduction¶
When conducting short-term trading or capital flow reviews for A-shares, the Dragon and Tiger List (Longhu List/Billboard) is an essential data source: we need both a summary of the stocks on the list for the day and the specific buying and selling details by brokerage branch. A common practice is to manually click through the East Money website and copy data into spreadsheets. This can lead to missed entries and inconsistent fields when dealing with many dates.
Below is an introduction to the SkillHub community Skill eastmoney-lhb-extract (located at @user_1da200f4/eastmoney-lhb-extract, version 1.0.2). It condenses the process of “fetching the list + pulling details via TRADE_ID + top 5 buyer seats + Excel export” into a repeatable workflow. It is suitable for triggering via natural language with an Agent or by running main.py directly in the skill directory.
What is this¶
eastmoney-lhb-extract is a community Skill designed for data-analysis, published by user_1da200f4. SkillHub indicates requires_api_key=false, so no separate API Key configuration is needed.
In short: It automatically fetches the Dragon and Tiger List data from the East Money Data Center API, retrieves brokerage trade details for each record, filters out the top 5 buyer seats by purchase amount, and generates a downloadable Excel file.
Compared to pure web scraping, it calls the public East Money Data Center API (datacenter-web.eastmoney.com) directly. Pagination and fields are fixed within the script, facilitating batch reruns by trading day.
Core Functionality¶
Based on the SKILL.md and main.py within the skill package, the verified capabilities are as follows:
- Billboard List: Requests
reportName=RPT_DAILYBILLBOARD_DETAILS, supports pagination (500 per page), and allows filtering byTRADE_DATEfor a specific trading day. - Trade Details: For each
TRADE_IDin the billboard list, it requestsreportName=RPT_OPERATEDEPT_TRADEto obtain data at the brokerage branch level. - Top 5 Buyer Seats: In the details, it filters for
TRADE_DIRECTION == '0'(Buyer), sorts byBUY_AMT_REALin descending order, and takes the top 5 brokerage branches. - Excel Export: Defaults to outputting
eastmoney_lhb.xlsx. If a stock has top 5 buyers, it expands into 5 rows (each row corresponding to one seat). Column names are consistent with the field table in the skill documentation (including SECUCODE, price change %, LHB buy/sell amount, reason for listing, seat name, and buy/sell amounts).
On the Agent side, it can be invoked via trigger words in the skill metadata, such as: Dragon and Tiger List (LHB), East Money LHB, extract LHB data, eastmoney lhb, lhb data.
Installation and Usage¶
Install SkillHub CLI (if not already installed)¶
First, check if the CLI exists on your machine:
command -v skillhub && skillhub --version
If not installed, follow the official SkillHub installation documentation to perform a complete installation (including CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
If only the CLI is needed:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install this Skill¶
When installing, you must use --dir to point to the current Agent’s skills directory. Otherwise, it defaults to ./skills/, and the Agent may not recognize it.
skillhub install @user_1da200f4/eastmoney-lhb-extract --dir <your skills directory>
Common paths (from SkillHub installation instructions):
- Cursor:
~/.cursor/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project - Claude Code:
~/.claude/skills/
You can also ask the AI in the conversation to install it according to official guidelines:
Please install `@user_1da200f4/eastmoney-lhb-extract` based on https://skillhub.cn/install/skillhub.md.
Python Dependencies¶
The skill entry point is main.py. Install the dependencies from requirements.txt within the skill directory before running the script:
pip install -r requirements.txt
Dependencies include: requests, beautifulsoup4, pandas, openpyxl, lxml (see the skill package’s requirements.txt for version lower bounds).
Typical Usage¶
Navigate to the skill installation directory (e.g., .../eastmoney-lhb-extract/) and execute according to the SKILL.md examples.
Default: LHB for the previous working day (falls back to last Friday on Mondays; get_previous_workday() handles weekends in the script):
python main.py
Specify a trading day (format YYYY-MM-DD):
python main.py --date 2026-04-23
Custom output path:
python main.py --output my_lhb_data.xlsx
In an Agent, simply describe the same intent in natural language, such as “Extract yesterday’s East Money Dragon and Tiger List and export to Excel”; the Agent should enter the skill directory, install dependencies, and execute the above command.
Refer to the “Excel Output Format” section in the skill documentation for export columns and the “5 rows of buyer seats per stock” rule, which is consistent with the export_to_excel implementation.
Use Cases and Notes¶
Who it is for
- Quants/researchers who need to archive LHB daily, perform seat statistics, or clean data before backtesting.
- Users who want to trigger a fixed extraction workflow via conversation in environments like Cursor or Codex, rather than manually writing request parameters every time.
Limitations and Notes
- Data Source and Compliance: Data is from the public East Money interface, intended for research and personal analysis only. Please comply with site terms of use and do not perform high-frequency stress testing (the script includes
time.sleep(0.2)throttling between pagination and per-stock details). - Network and Environment: Requires access to
datacenter-web.eastmoney.com; if there is no data, the script will prompt to check the date or network. - Non-trading Days: If no data is listed for the specified date, an empty result may be obtained; “Previous Working Day” is not equal to “Previous Trading Day”. Manual
--dateis required for holidays. - Missing Details: If a record has no top 5 buyer data, it will still export a row, but seat-related columns will be empty.
- Community Maintenance: Sourced from SkillHub
community; version is subject to the page and installation package (currently 1.0.2). If East Money adjusts interface fields, watch for skill updates.
SkillHub Page Statistics (at time of scraping): Rating 100000, ~865 downloads; tags indicate no API Key required.
Conclusion¶
eastmoney-lhb-extract aligns the LHB list, brokerage details, and Excel templates into a single command chain, making it suitable for daily reviews or Agent workflows. Installation and instructions are subject to SkillHub:
- Skill Page: https://www.skillhub.cn/skills/user_1da200f4/eastmoney-lhb-extract
- API Entry: https://api.skillhub.cn/user_1da200f4/eastmoney-lhb-extract