跳到正文
Skillpedia
分析与电子表格37k · #7509

data-routing

它能做什么

这项技能是一份路由指南,把每一类金融数据请求匹配到最适合它的数据源。适合在 Vibe-Trading 工具包中运行回测或研究、并希望数据可靠的人。

适用场景

  • ✓当你即将运行回测、获取行情数据或开始金融研究任务的时候。
  • ✓当你需要知道哪个数据源覆盖某个特定市场的时候。
  • ✓当某个数据源需要密钥,并且你希望在运行前确认其已设置好的时候。

技能链接

https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/data-routing/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/data-routing/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我应该使用哪个数据源获取 A 股和美股的每日价格?它需要密钥吗?”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会在数据源表中查找你所需的市场和数据类型,标注每个数据源是否需要访问密钥,并选出最合适的一个。然后它会用该数据源进行回测或数据拉取。

技术内容(原始 SKILL.md)

作者在 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,
常见问题

为什么需要路由指南?

数据源在覆盖市场、访问要求和可靠性方面各不相同,选对可以避免拉取失败或不安全的操作。

需要密钥的数据源怎么办?

技能会说明每个密钥对应的环境变量,因此智能体可以确认它已经设置好。

它会避开有风险的数据源吗?

会。它会标记那些较可能被封锁的服务商,让智能体避开它们。

详情

作者的原始描述

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

热度

GitHub 星标
37k
排名
#7509
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能