Stock Data Sourcing
Overview
Use this skill to route cross-market data requests to the right providers before writing analysis or building ingestion workflows.
Prefer market coverage and freshness over provider purity, and always state the fallback chain when source quality is uncertain.
Workflow
- Classify the request by market and task:
- market:
A-share,Hong Kong,US,index,ETF - task:
realtime quote,daily history,chips,fundamentals,market breadth,news,event intel
- market:
- Read references/data-sources.md when choosing or justifying providers.
- Pick a primary provider and at least one fallback.
- If
marketbotalready has a native tool that covers the task, use it and keep this skill as routing guidance. - In the answer, state:
- chosen source
- fallback chain
- freshness caveat
- gaps that still need integration
Routing Rules
Quotes and history
A-share:- prefer
tusharewhen a token is configured and stable structured data matters - otherwise prefer
efinancefor broad free coverage - fall back to
akshare, thenpytdx, thenbaostock
- prefer
Hong Kong:- prefer
aksharefor free historical and realtime HK support - fall back to
yfinancewhen symbol conversion is acceptable
- prefer
US stocksandUS indices:- prefer
yfinance - do not route US history through
akshareorefinance
- prefer
Specialized enrichments
chips / cost distribution: preferaksharefundamentals / boards / company profile: preferefinancemarket indices / sector rankings:A-share:efinance,akshare, ortushareUS:yfinancefor indices; do not over-promise sector breadth unless a provider is actually wired
News and event intel
A-shareand Chinese news:- prefer
Bocha, thenTavily, thenSerpAPI
- prefer
USand global English news:- prefer
Brave, thenTavily, thenSerpAPI
- prefer
- Default freshness target: keep news within
3 daysunless the user asks for a longer window. - For catalyst work, search across these dimensions:
- latest news
- market analysis / analyst view
- risk check
- earnings
- industry context
Pairing
- Use
market-reportfor the final write-up. - Use
catalyst-trackerwhen the user cares about drivers and calendars. - Use
stock-info-explorerfor Yahoo-based charts after the source plan is decided. - Use
risk-checklistafter the source-backed thesis is stable.
Output pattern
# Source Plan: <SYMBOL or WATCHLIST>
## Primary
- Provider:
- Why:
## Fallbacks
- 1:
- 2:
## Freshness / Limits
- Expected latency:
- Coverage gaps:
- News window:
## Integration Notes
- Existing marketbot tools to use:
- New connectors still needed:
Rules
- Do not claim a provider is already integrated into
marketbotunless the code path exists. - Separate current runtime capability from recommended future integration.
- Prefer exact provider names over vague phrases like "some API".
- If coverage is mixed, explicitly say which asset classes are strong and which are weak.
