data-routing

Select optimal trading data sources with priority and fallback checks.

30.4k|4.9k|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/HKUDS/Vibe-Trading --skill data-routing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-routing
Source: https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/data-routing
Command: npx skills add https://github.com/HKUDS/Vibe-Trading --skill data-routing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Trading workflows frequently waste time selecting among multiple APIs while backtests or research waits on a reliable feed, and misconfigured sources cause failed downloads. data-routing codifies the decision tree, environment checks, and fallback logic so the agent immediately points to the best available provider.

Core Features & Use Cases

  • Market-aware routing: Prioritizes tushare, akshare, yfinance, okx, and ccxt based on the asset class and required credentials.
  • Availability and fallback checks: Validates tokens, handles network restrictions, and transparently shifts to a secondary data source when the runner detects failures.
  • Use case: Before running any cross-market research script or configuring a backtest, load this skill so the runner automatically selects the ideal connector without manual edits.

Quick Start

Ask the data-routing skill to pick the best data source before running a backtest.

Frequently Asked Questions about data-routing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically select the best trading data source for backtesting across multiple markets?

To automatically select a trading data source for backtesting, use market-aware routing that enforces priority order among tushare, akshare, yfinance, okx, and ccxt based on asset class, validating credentials before fetching quotes.

What is the best way to handle API fallback when akshare or tushare fails during market data downloads?

Handling API fallback when akshare or tushare fails requires availability checks that validate tokens and detect network restrictions. It transparently shifts fetching to a secondary data source when the runner detects download failures.

Can I use a single connector to fetch quotes for A-shares, crypto, and US equities?

You can fetch quotes for A-shares, crypto, and US equities using a single routing logic layer. It applies market-aware routing to select the optimal provider among tushare, akshare, yfinance, okx, and ccxt for the given environment.

Do I need API tokens configured before routing to tushare or okx for market data?

You need API tokens configured before routing to tushare or okx for market data. The routing mechanism checks credentials and network availability before attempting to fetch quotes, falling back to unauthenticated sources if validation fails.

Why does my cross-market research script fail to download data from different providers?

Cross-market research scripts fail to download data when sources are misconfigured or lack credentials. Applying a codified decision tree checks environment availability and handles network restrictions, preventing failed downloads by shifting to working providers.