data-routing

Route backtesting data source selection by market with priority-and-fallback strategy.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill data-routing-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-routing
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/skills/finance/data-routing
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill data-routing-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Data source routing for backtesting and data-driven research to automatically select the best available data source and minimize manual setup.

Core Features & Use Cases

  • Data Source Overview: supports tushare, akshare, yfinance, okx, and ccxt across markets with varying access requirements.
  • Decision Tree & Fallback: automatically routes by market type and uses environment-based availability to fall back when a primary source is unavailable.
  • Use Case: Backtest a US stock strategy with auto-source selection, or macro-economic research with robust data sourcing.

Quick Start

Specify the market and data needs, and this skill will automatically route to the best available data source.

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 market data source for backtesting?

Data source routing for backtesting automatically selects the best available data source by checking environment availability tokens and applying a priority-and-fallback strategy, minimizing manual setup.

What is the best way to handle tushare and akshare fallbacks in backtest configuration?

Use a smart data routing skill to manage tushare and akshare fallbacks; it checks environment tokens like TUSHARE_TOKEN and provides deterministic routing with graceful fallbacks across markets.

Can I use yfinance and ccxt for backtesting US stocks and crypto without manual configuration?

Yes, you can backtest US stocks and crypto using yfinance and ccxt without explicit user configuration, as the routing mechanism automatically picks the best available source based on environment availability.

Do I need a TUSHARE_TOKEN to run macro-economic research data sourcing?

You do not explicitly need a TUSHARE_TOKEN for macro-economic research data sourcing, as the system checks environment availability and gracefully falls back to other accessible sources like akshare.

Why does my backtest data routing fail with no sources accessible?

Backtest data routing fails with no sources accessible because the environment availability tokens are missing or invalid, triggering clear errors when the priority-and-fallback strategy exhausts all options.