# Anyfinancial Realtime API Data

> 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.

- Skill: `rebyteai/anyfinancial-realtime-api-data` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add rebyteai/anyfinancial-realtime-api-data`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rebyteai/anyfinancial-realtime-api-data/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: rebyteai (https://skillmd.com/u/rebyteai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/rebyteai/anyfinancial-realtime-api-data

---


# 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:

```bash
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:

```bash
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 '{}'
```

