| version | 1 |
| name | anyfinancial-realtime-api-data |
| description | Direct AnyFinancial data access for recent/realtime market APIs. Routes US requests to local US point-query docs and CN requests to the CN Stocks provider. |
Real-time/API Data
Real-time/API Data is for recent or realtime API data, lightweight lookups, and
provider-specific retrieval. It is not the backtesting workflow and it is not a
long-form financial research workflow.
Route by Market
| Market | Use when | Load next |
|---|
| United States | US quotes, recent bars, latest ticker news, point fundamentals | us/SKILL.md |
| China | CN A-share bars, adjustment factors, 1-minute bars, valuation, financials, universe, or CN news | cn/SKILL.md |
Usage Rules
- Query the provider API for current/latest data; do not answer from memory.
- Keep requests scoped: one market, operation, and symbol/universe at a time
unless the user explicitly asks for a batch.
- Include timestamps, market, operation, and source/provider fields when the
provider returns them.
- If the task becomes a strategy simulation, switch to
../backtesting/SKILL.md.
- If the task needs historical data lake SQL for backtest preparation, use
../data/SKILL.md as part of the Backtesting pillar.
Authentication
Provider APIs use the Rebyte sandbox auth token and relay URL:
AUTH_TOKEN=$(/home/user/.local/bin/rebyte-auth)
API_URL=$(python3 -c "import json; print(json.load(open('/home/user/.rebyte.ai/auth.json'))['sandbox']['relay_url'])")
Send Authorization: Bearer $AUTH_TOKEN and Content-Type: application/json on
every request.
Local CLI
Use the bundled realtime-api-data CLI for executable examples:
python3 scripts/anyfinancial_api_data.py us latest-price AAPL
python3 scripts/anyfinancial_api_data.py us latest-news TSLA --limit 5
python3 scripts/anyfinancial_api_data.py cn universe --payload '{}'