What you can build
RocketFi exposes a REST API for request/response flows (instruments, positions, submitting transactions) and a WebSocket API for low-latency streams (orderbooks, marks, funding, account and order events). Asynchronous workflows are common in trading systems: a REST call may return immediately while final settlement or matching continues in the background. For live status, prefer the WebSocket stream described under WebSocket API.Documentation map
- Introduction — environments, auth, limits, errors, WebSocket concepts.
- REST API — grouped endpoints (service, market data, account, trading, vault, faucet).
- WebSocket API — the
/wschannel and message schemas.
Specifications
Source files in this repo:specs/openapi.json— REST (also available from your backend at/docs/openapi.jsonwhen deployed).specs/asyncapi.yaml— WebSockets (backend:/docs/ws-asyncapi.yaml).