API reference

Public (read)

EndpointMethodDescription
/api/market/bootstrapGETSectors, stocks, snapshots
/api/market/stocksGETStock list
/api/market/snapshotsGETAll snapshots
/api/market/snapshot/[ticker]GETSingle snapshot
/api/market/klines/[ticker]GETChart candles
/api/market/prices/streamGETSSE price stream
/api/perp/mark/[ticker]GETPerp mark (read only)
/api/perp/quote/[ticker]GETOpen/close quotes
/api/perp/positions/[address]GETOn-chain perp positions
/api/portfolio/[address]GETPortfolio aggregate
/api/newsGETNews list
/api/news/article/[id]GETSingle article

Admin (rate limited)

Require header x-admin-key when ADMIN_API_KEY is set.

EndpointMethodDescription
/api/oracle/sync-pricesPOSTPush spot oracle prices
/api/perp/sync-pricesPOSTPush perp marks
/api/perp/liquidatePOSTLiquidation transactions
/api/news/syncPOSTNews ingestion

/api/oracle/nudge and /api/perp/nudge trigger sync from the UI without exposing admin keys. Both are rate limited.