data-routing
What it does
This skill is a routing guide that matches each type of finance data request to the source that best serves it. It is for people running backtests or research in the Vibe-Trading toolkit who want reliable data.
When to use it
- ✓When you are about to run a backtest, fetch market data or start a finance research task.
- ✓When you need to know which data source covers a particular market.
- ✓When a data source needs a key and you want to check it is set up before the run.
Skill link
https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/data-routing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Which data source should I use to get daily prices for A-shares and US stocks, and do I need a key for it?”
5 new skills a week. 1 minute to read.
How it works
The agent checks the source table for the markets and data types you need, notes whether each source requires an access key, and picks the best fit. It then uses that source for the backtest or data pull.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Data Routing (Router)
This is the one router. It maps (a) every registered backtest data source to its
markets / auth / skill, and (b) every research data need to the concrete tool
that serves it, its market, and the env key it requires. Source names below are a
strict subset of backtest.loaders.registry.VALID_SOURCES (enforced by
tests/test_data_routing_sources_subset.py).
Source Overview
Every name here is a registered OHLCV/backtest source in VALID_SOURCES.
"Runner-internal" sources are selected by the backtest runner, not authored as a
per-source skill.
| Source | Markets | Auth (env key) | Network | Skill |
|---|---|---|---|---|
| tushare | A-shares, funds, futures, macro | Yes (TUSHARE_TOKEN) |
China network | tushare |
| akshare | A-shares, US, HK, futures, macro, forex | No | Unrestricted | akshare |
| yfinance | US, HK, Canada (TSX/TSXV) stocks, ETFs | No | Needs Yahoo access | yfinance |
| okx | Crypto (OKX exchange) | No | Needs okx.com access | okx-market |
| nobitex | Crypto, IRT/Toman-quoted pairs (BTC-IRT, USDT-IRT — Iran market premium) | No | Needs apiv2.nobitex.ir access | data-routing (explicit *IRT routing only) |
| wallex | Crypto, TMN/Toman-quoted pairs (USDT-TMN, BTC-TMN — Iran market premium) | No | Needs api.wallex.ir access | data-routing (explicit *TMN routing only; truly serves 1m/1h/1d) |
| ccxt | Crypto (100+ exchanges) | No | Needs exchange access | ccxt |
| baostock | A-shares (free daily/min) | No | China network | data-routing |
| tencent | A-shares, HK, US (never-banned) | No | Unrestricted | data-routing |
| mootdx | A-shares (retired 2026-10: TDX servers stopped answering the client protocol; explicit source="mootdx" only) |
No | China network | data-routing |
| futu | A/HK/US via OpenD gateway | Yes (OpenD running) | Local gateway | data-routing (runner-internal) |
| mt5 | Forex & metals (your broker's MT5 feed) | Yes (running, logged-in MT5 terminal; optional ~/.vibe-trading/mt5.json) |
Local terminal (Windows) | data-routing (runner-internal) |
| tickerall | Forex & metals (same broker MT5 feed, hosted) | Yes (TICKERALL_API_KEY + TICKERALL_ACCOUNT_ID; read-only) |
Hosted API (any OS, no terminal) | data-routing (runner-internal; explicit source=tickerall only) |
| local | User CSV/parquet on disk | No | Offline | data-routing (runner-internal) |
| eastmoney | A-shares, HK, US equities | No (IP-throttled) | Unrestricted | data-routing |
| sina | US equities (daily OHLCV) | No (IP-throttled) | Unrestricted | data-routing |
| stooq | US equities (daily OHLCV) | No | Unrestricted | data-routing |
| yahoo | US, HK, Canada (TSX/TSXV) equities | No (IP-throttled) | Needs Yahoo access | data-routing |
| finnhub | US equities | Yes (FINNHUB_API_KEY) |
Unrestricted | data-routing |
| alphavantage | US equities | Yes (ALPHAVANTAGE_API_KEY) |
Unrestricted | data-routing |
| tiingo | US equities | Yes (TIINGO_API_KEY) |
Unrestricted | data-routing |
| fmp | US equities | Yes (FMP_API_KEY) |
Unrestricted | data-routing |
| gildata | A-shares (前复权 dailies), HK equities (raw), CN indices | Yes (GILDATA_TOKEN / Settings) |
Gildata MCP API | data-routing |
| qveris | Global multi-asset (paid, credits) | Yes (QVERIS_API_KEY / Settings) |
QVeris API | qveris <!-- QVERIS-INTEGRATION --> |
Capability → Tool Routing
Pick the tool by the data need. "Market" is the universe the tool covers; "Env key" is required only where listed (no key listed = free / no auth).
| Data need | Tool | Market | Env key |
|---|---|---|---|
| OHLCV price bars | get_market_data |
A-share / US / HK / Canada / crypto / futures / forex | per-source (see Source Overview) |
| Fund flow (资金流向) | get_fund_flow |
A-share, HK, US | — |
| Dragon-tiger (龙虎榜) | get_dragon_tiger |
A-share | — |
| Northbound flow (北向资金) | get_northbound_flow |
A-share | — |
| Margin trading (融资融券) | get_margin_trading |
A-share | — |
| Block trades (大宗交易) | get_block_trades |
A-share | — |
| Shareholder count (股东户数) | get_shareholder_count |
A-share | — |
| Lockup expiry (限售解禁) | get_lockup_expiry |
A-share | — |
| Sector / board taxonomy (板块) | get_sector_info |
A-share | — |
| Sell-side research reports | get_research_reports |
A-share | — |
| Stock news | get_stock_news |
A-share, US, HK | — |
| SEC filings (EDGAR) | get_sec_filings |
US | — |
| Financial statements | get_financial_statements |
A-share, US, |
FAQ
Why is there a routing guide?
Sources differ in markets covered, access requirements and reliability, so picking the right one avoids failed or unsafe pulls.
What about sources that need a key?
The skill names the environment variable each key uses, so the agent can confirm it is set.
Does it avoid risky sources?
Yes. It marks providers that carry a higher risk of being blocked, so the agent can steer clear of them.
Details
Original description by the author
The single ROUTER for every data need. Load this skill BEFORE any backtest, data-fetch, or research task to pick the best available source/tool, honour auth (env) requirements, and avoid ban-risk providers.
repo: HKUDS/Vibe-Trading
Popularity
- GitHub stars
- 37k
- Ranking position
- #7509
- License
- MIT
- Updated
- 11/1/2026
Comments
- …
More skills from this repository
vibe-trading
37kGives your agent a full finance research toolkit, covering backtests, factor analysis, options pricing and market data across many markets.
adr-hshare
37kShows your agent how to compare the price of a Chinese company listed in several markets, such as a US ADR and a Hong Kong share.
akshare
37kLets your agent pull free market data for Chinese and global stocks, futures, forex and economic indicators, with no API key needed.
alpha-zoo
37kLets your agent browse a library of ready-made stock factors and test how well a whole set of them predicts returns on a chosen market.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.