Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính37k · #7509

data-routing

Skill này làm gì

Skill này là một hướng dẫn định tuyến, ghép từng loại yêu cầu dữ liệu tài chính với nguồn phù hợp nhất. Skill dành cho người chạy backtest hoặc nghiên cứu trong bộ công cụ Vibe-Trading và cần dữ liệu đáng tin cậy.

Khi nào nên dùng

  • ✓Khi bạn sắp chạy backtest, lấy dữ liệu thị trường hoặc bắt đầu một nghiên cứu tài chính.
  • ✓Khi bạn cần biết nguồn dữ liệu nào bao phủ một thị trường cụ thể.
  • ✓Khi một nguồn dữ liệu cần key và bạn muốn kiểm tra key đã được thiết lập trước khi chạy.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/HKUDS/Vibe-Trading/blob/main/agent/src/skills/data-routing/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tôi nên dùng nguồn dữ liệu nào để lấy giá hằng ngày của cổ phiếu A và cổ phiếu Mỹ, và tôi có cần key cho nguồn đó không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra bảng nguồn cho các thị trường và loại dữ liệu bạn cần, xem từng nguồn có yêu cầu key truy cập hay không, rồi chọn nguồn phù hợp nhất. Sau đó nó dùng nguồn đó cho backtest hoặc việc lấy dữ liệu.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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,
Câu hỏi thường gặp

Tại sao cần hướng dẫn định tuyến?

Các nguồn khác nhau về thị trường bao phủ, yêu cầu truy cập và độ tin cậy, nên chọn đúng nguồn giúp tránh việc lấy dữ liệu thất bại hoặc không an toàn.

Còn các nguồn cần key thì sao?

Skill nêu tên biến môi trường của từng key, để agent kiểm tra xem key đã được thiết lập chưa.

Skill có tránh các nguồn rủi ro không?

Có. Skill đánh dấu các nhà cung cấp có nguy cơ bị chặn cao hơn, để agent tránh chúng.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
37k
Vị trí xếp hạng
#7509
Giấy phép
MIT
Cập nhật
1/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự