Skip to main content

Module exchange

Module exchange 

Source
Expand description

Exchange snapshot API handler.

POST /api/exchange/snapshot — Fetches full market snapshot (order book, ticker, recent trades) for a given venue and pair.

Structs§

OhlcRequest
Request body for exchange OHLC.
SnapshotRequest
Request body for exchange snapshot.
TradesRequest
Request body for exchange trades.

Functions§

handle
POST /api/exchange/snapshot — Full market snapshot.
handle_ohlc
POST /api/exchange/ohlc — OHLC candlestick data for a venue/pair.
handle_trades
POST /api/exchange/trades — Recent trades for a venue/pair.