data-routing

data-routing is a skill for Claude Code, Codex from skloxo/TideTrading. It costs 47 tokens per session (2,165 once invoked), scanned A, a copy of data-routing, MIT.

A routing guide that chooses an available data source for market research and backtesting, which means testing a trading idea on historical data. It maps sources to markets, access requirements, network needs, and related tools.

In plain words
What is it for?
Use it before fetching data or running a backtest to select sources for shares, funds, futures, macroeconomic data, foreign exchange, or cryptocurrency, and to check required environment keys.
Why use it?
It prevents choosing a source that cannot provide the needed market data or requires unavailable credentials. It also helps avoid unnecessary access problems and provider bans.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before fetching data or running a backtest to select sources…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/skloxo/tidetrading/data-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add skloxo/TideTrading --skill data-routing
Clone the repo
git clone --depth 1 https://github.com/skloxo/TideTrading

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/skloxo/tidetrading/data-routing.svg)](https://agentmods.dev/skills/skloxo/tidetrading/data-routing)
Your own site
<a href="https://agentmods.dev/skills/skloxo/tidetrading/data-routing"><img src="https://agentmods.dev/badge/skills/skloxo/tidetrading/data-routing.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,165 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.02165
Opus 5 $0.00023 $0.01082
Sonnet 5 $0.00009 $0.00433
Haiku 4.5 $0.00005 $0.00216

Measured 7d ago against content hash ad42865f098c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

data-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to data-routing — 21 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agent/src/skills/data-routing/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on 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 stocks, HK stocks, ETFs No Needs Yahoo access yfinance
okx Crypto (OKX exchange) No Needs okx.com access okx-market
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 (TDX servers, never-banned) No China network data-routing
futu A/HK/US via OpenD gateway Yes (OpenD running) Local gateway data-routing (runner-internal)
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 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

Read the full file on GitHub · 145 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 145 lines · 47 tokens per session scan A ad42865f098c

Subscribe to this mod's changes

data-routing is a skill published in the GitHub repository skloxo/TideTrading (10 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 2,165 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to data-routing, differing in 21 lines, and is treated as a copy.

Related

Other skills, from other repositories

daily-deep-brief

A scheduled, pre-market investment briefing for Hong Kong and United States stocks. A deterministic preparation step gathers data and an agent adds judgment, while a later step validates and publishes the result.

KCNyu/clawock · 163 tokens

invest-analyst

A framework for producing professional investment research, including company reports, industry studies, event analysis, analyst-expectation reviews, comparisons, and market summaries. It connects several investment research workflows into one process.

taxueseek/fund-investment-guide · 193 tokens

invest-fund

A Chinese-language guide for analysing investment funds, with different workflows for comparing funds, reviewing ETFs, examining new funds, and studying industry funds.

taxueseek/fund-investment-guide · 142 tokens

invest-stock

A stock-analysis workflow for companies listed in China, Hong Kong, or the United States. It chooses an analysis style based on the market and whether the user requests a deeper valuation review.

taxueseek/fund-investment-guide · 110 tokens

hk-stock-analysis

A workspace-aware analysis workflow for Hong Kong-listed stocks. It retrieves prices, technical indicators, market comparisons, and news through a local data pipeline, then adds Hong Kong-specific investment context.

KCNyu/clawock · 126 tokens

us-stock-analysis

Workspace-aware US stock analysis for kcn. Routes through clawock analyze-us / clawock us-quotes instead of generic web search, then layers fundamental/technical/news analysis on top. Use when user asks to analyze a US ticker (e.g. "analyze AAPL", "look at RKLB", "compare TSLA vs NVDA"), check earnings, run…

KCNyu/clawock · 97 tokens