greenhushaoqi-lang/stoc/data-routing

Claude Code and agent skill by greenhushaoqi-lang/stoc

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Data source selection decision tree. Load this skill BEFORE any backtest or data-fetching task to choose the best available data source.

Install

npx vskill@latest install greenhushaoqi-lang/stoc/data-routing

SKILL.md

The same SKILL.md was published earlier as greenhushaoqi-lang/stoc/data-routing.

Data Source Overview

SourceMarketsAuth RequiredNetworkSkill
tushareA-shares, funds, futures, macroYes (TUSHARE_TOKEN)China networktushare
akshareA-shares, US, HK, futures, macro, forexNoUnrestrictedakshare
yfinanceUS stocks, HK stocks, ETFsNoNeeds Yahoo Finance accessyfinance
okxCrypto (OKX exchange)NoNeeds okx.com accessokx-market
ccxtCrypto (100+ exchanges)NoNeeds exchange accessccxt

Decision Tree

Backtest Scenario (writing config.json)

Use source: "auto" — the runner automatically routes by symbol pattern and falls back to alternative sources if the primary one is unavailable.

You do NOT need to specify a concrete data source in config.json unless the user explicitly asks for one.

Analysis / Research Scenario (writing Python scripts)
  1. Identify the market type from the user's request
  2. Pick the source by priority:

A-shares: tushare (if TUSHARE_TOKEN is set) > akshare (free fallback) US stocks: yfinance > akshare HK stocks: yfinance > akshare Crypto: okx (single exchange) > ccxt (multi-exchange) Futures: tushare > akshare Macro / economics: akshare > tushare Forex: akshare > yfinance

  1. Load the corresponding skill for API details: load_skill("akshare")
Availability Check
  • tushare: check if TUSHARE_TOKEN environment variable exists
  • yfinance / okx / ccxt / akshare: free but may have network restrictions
  • If the user reports "connection timeout" or "cannot access", switch to the same-market fallback

Symbol Format Reference

MarketFormatExamples
A-sharesNNNNNN.SZ/SH/BJ000001.SZ, 600000.SH
US stocksTICKER.USAAPL.US, MSFT.US
HK stocksNNN(N).HK700.HK, 9988.HK
CryptoSYMBOL-USDTBTC-USDT, ETH-USDT
FuturesXXNNNN.EXCHANGECU2406.SHFE
ForexXXX/YYYUSD/CNY, EUR/USD

Fallback Chain (Runner Layer)

The backtest runner implements automatic fallback at the market level:

User requests 000001.SZ (A-share)
-> detect market: a_share
-> try tushare: TUSHARE_TOKEN missing -> skip
-> try akshare: available -> use akshare
-> success (zero config required)

This is transparent to the user — they just see results.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/greenhushaoqi-lang/stoc/data-routing/badge)](https://verified-skill.com/skills/greenhushaoqi-lang/stoc/data-routing)

Something wrong with this skill or its page? Tell us.