RWA·TERMINAL
API ONLINE VERSION 0.1.0 UPTIME 3h 0m 10s UTC 15:34:50

API gateway · Layer 4

Open information terminal for US markets + tokenized real-world assets. Phase 0b skeleton — endpoints land na main w kolejnych commitach.

Health
200 OK
/healthz responding
Database
PENDING
Postgres + Timescale + pgvector (wymaga Docker)
Redis bus
PENDING
Bus + cache (wymaga Docker)

Endpoints

GET
Ta strona (HTML landing)
● LIVE
GET
Liveness probe (ALB / Lightsail health check)
● LIVE
GET
Readiness — verifies DB + Redis reachable
● LIVE
GET
API metadata JSON
● LIVE
GET
Swagger UI (interactive API explorer)
● LIVE
GET
ReDoc (alternative API docs)
● LIVE
GET
Prometheus metrics (scrape target)
● LIVE
GET
/api/wire
Wire feed (Layer 3 → news engine) — Phase 1
TBD P1
GET
/api/markets/{tab}
Markets tabs (indices/stocks/bonds/...) — Phase 1
TBD P1
GET
/api/assets/{slug}
Asset detail page (aggregated all engines) — Phase 1
● LIVE
POST
/api/assistant/session
Create AI Assistant session (uuid4, TTL 1h)
TBD W6
POST
/api/assistant/{session_id}/message
Send message — SSE stream of token chunks (mock client when OPS_USE_MOCK_CLAUDE=true)
TBD W6
GET
/api/assistant/{session_id}/history
Get conversation history
TBD W6
WS
/ws/wire
WebSocket fan-out z ui.broadcast.wire — Phase 1
TBD P1

4-Layer Architecture (per RESEARCH §18)

LAYER 1
Connectors
timeseries/
informational/
onchain/ (P5+ stub)
LAYER 2
Processing
normalizer · dedup
enricher · scorer
embedder
LAYER 3
Engines (10)
indices · stocks · bonds
commodities · fx · macro
news · sentiment · calendar
ai_assistant
LAYER 4
API · WS · Voice
YOU ARE HERE
FastAPI gateway
+ Caddy reverse proxy