Architecture
Joyride’s hybrid CLOB is split into a few focused services:matching-engine: order book and matching logicorder-gateway: WebSocket trading interface and HTTP query interfacerisk-engine: Greeks, mark pricing, and quote quality metricssettlement-service: expiration settlement workflowsderibit-mirrorandbs-market-maker: liquidity services and market making helpers
API surfaces
HTTP REST API
The exchange HTTP API is read-heavy and is the best place to start for integrations that need:- instruments
- order books
- tickers
- price history
- account state
- order history
- admin settlement and bootstrap flows
REST API tab from the checked-in openapi.yaml spec.
WebSocket API
Trading is WebSocket-only. The gateway speaks JSON-RPC 2.0 over a raw WebSocket connection for:- authentication
- order placement and cancellation
- live book subscriptions
- user order and trade notifications
WebSocket Reference tab for the generated channel and message reference.
Risk engine API
The risk engine exposes Greeks, mark IV, and mark source metadata over HTTP and WebSocket. See Risk Engine.Current ownership
The exchange docs in this site should stay close toorder-gateway, risk-engine, and the checked-in API specs under docs/.