data-routing

Route data source selection for backtesting and data fetch tasks across markets.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Liangwei-zhang/six-stock --skill data-routing-liangwei-zhang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-routing
Source: https://github.com/Liangwei-zhang/six-stock/tree/main/Vibe-Trading/agent/src/skills/data-routing
Command: npx skills add https://github.com/Liangwei-zhang/six-stock --skill data-routing-liangwei-zhang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Data source selection for backtesting and data fetch tasks, routing to the most appropriate source to minimize manual setup and ensure consistent results across markets.

Core Features & Use Cases

  • Automatic data source routing based on market type (A-shares, US stocks, HK stocks, crypto, futures, macro) and availability.
  • Built-in fallback logic to switch to the next best source when the primary is unavailable or restricted.
  • Seamless integration into backtesting and data-fetch workflows with zero-config defaults.

Quick Start

Use the data-routing skill to automatically select the best data source for a given market and backtest scenario.

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 data source for backtesting across different markets?

Automatic data source routing selects the best market data source by applying priority-based routing and fallback chains to ensure robust backtesting results across A-shares, US stocks, and crypto.

How does fallback logic work when fetching market data for a backtest?

Fallback logic works by switching to the next best available data source when the primary source is unavailable or restricted, ensuring your data fetch tasks remain robust during backtesting.

Can I use this to route data for crypto and macro backtesting workflows?

Yes, you can route data for crypto and macro backtesting workflows. The routing mechanism supports market identification and source prioritization across these asset classes with zero-config defaults.

Do I need specific API tokens configured before routing market data sources?

Yes, you need specific API tokens configured. The routing mechanism implements environment checks for tokens to determine source availability and trigger fallback logic if access is restricted.

What is the best way to handle data source prioritization for A-shares and US stocks?

The best way to handle data source prioritization for A-shares and US stocks is using a priority-based routing rule set that evaluates market type and automatically applies fallbacks to ensure consistent results.

Why does my data fetch fail to switch sources when the primary market data API is unavailable?

Data fetches fail to switch sources if environment checks for tokens are not met or the fallback chain is not properly triggered, preventing the routing logic from selecting the next best source.