[ reference · api ]

REST API reference

All NVTrader REST endpoints in one place. Grouped by resource. Verbs follow the convention: GET = read, POST = write/run, DELETE = unlink/cancel. Examples assume the demo host at http://127.0.0.1:8015.

Auth

Most endpoints require a JWT bearer token from POST /api/auth/login. The token is also set as a cookie automatically by the login page.

VerbPathPurpose
POST/api/auth/registerFirst user becomes admin.
POST/api/auth/loginReturns {access_token, role}.
POST/api/auth/logoutInvalidate session.

Health

VerbPathPurpose
GET/api/health{ok: true} if app is up. ~3 ms p50.
GET/api/health/deepAlso pokes each linked provider; ~1 s.

Portfolio

VerbPathPurpose
GET/api/portfolio/stateEquity, day Δ, buying power, positions.
GET/api/portfolio/equityCumulative-return series.
GET/api/portfolio/risk_returnPer-holding vol+return scatter.
POST/api/portfolio/rebalanceRun plan + compliance verdict.
POST/api/portfolio/decisionApprove / Override / Reject.

Broker & orders

VerbPathPurpose
GET/api/broker/activeActive broker id.
POST/api/broker/switchAtomic swap.
GET/api/broker/ordersOrders. Query: status, since.
POST/api/broker/placeOne-shot order.
DELETE/api/broker/orders/{id}Cancel.

Data

VerbPathPurpose
GET/api/data/providersPer-endpoint health.
GET/api/data/barsOHLCV.
GET/api/data/newsRecent news.
GET/api/data/filingsEDGAR filings.

Research

VerbPathPurpose
GET/api/research/symbol/{sym}Bars + stats + peers.
POST/api/research/vlmNano Omni chart read.
POST/api/research/deepAIQ DeepResearch.

Backtest

VerbPathPurpose
POST/api/backtest/runWalk-forward.
POST/api/backtest/solve_onceSingle cuFOLIO solve.
POST/api/backtest/autoresearchParameter sweep.
GET/api/backtest/historyPast runs.
POST/api/backtest/save_strategyPersist as sleeve.

Models · RL · preferences

VerbPathPurpose
GET/api/rl/statusActive RL run.
POST/api/rl/trainStart a run.
GET/api/rl/curve/{run_id}Training curve.
GET/api/preferences/statusDPO readiness.
POST/api/preferences/extractRefresh DPO dataset.
GET/api/preferences/fingerprintStyle fingerprint.
GET/api/scheduler/jobsScheduler state.
POST/api/scheduler/run_now/{job_id}Manual fire.

Chat

VerbPathPurpose
POST/api/chatOne turn.
POST/api/chat/streamStreaming SSE.
GET/api/chat/toolsRegistered tools.

Bus & observability

VerbPathPurpose
GET/api/bus/agentsRegistry topology.
GET/api/bus/eventsEvent ring buffer.
POST/api/bus/triggerFire an event.
GET/api/observability/tracesOTel spans.
GET/api/observability/statsLatency aggs.
GET/api/observability/llmLLM utilization rows.

Compliance & audit

VerbPathPurpose
POST/api/compliance/checkVerdict for a plan.
GET/api/compliance/configEffective rules.
GET/api/audit/decisionsRebalance decision ledger.

Setup & account

VerbPathPurpose
GET/api/setup/providersProvider catalog + status.
GET/api/setup/guide/{cat}/{prov}Playbook md.
POST/api/setup/linkStore a key.
POST/api/setup/testSmoke a provider.
GET/api/account/meProfile.
GET/api/account/keysLinked providers.
GET/api/account/tenantTheme.
POST/api/account/tenantUpdate theme (admin).
NVTrader v0.1.18 · docs ·⚠ Not financial advice ·Docs home ·App