Before you begin
- Use a RocketFi account on the environment you are targeting (for example beta at beta.rocketfi.io).
- Open API management and create an API key for use with the SDK (signing transactions). Store it like a password—it is not sent as an HTTP auth header.
- Point your client at the correct REST base URL and WebSocket host for that network — see Environments.
Where to explore the API
| Tool | Use for |
|---|---|
| This documentation site | Narrated guides, grouped REST reference, AsyncAPI WebSocket reference, Mintlify playground |
| Swagger UI | Trying REST operations with Try it out against the live beta cluster |
| Live OpenAPI / AsyncAPI | Machine-readable contracts for codegen and CI |
Typical integration path
- Read-only: call public REST routes (instruments, candles, fees, and so on) to learn payloads—no API key in headers.
- Account data: use routes that take an account (and pagination) per OpenAPI; see Authentication.
- Real-time: open WebSocket
/ws, subscribe with the JSON kinds in AsyncAPI, handlePongandError— Public WebSocket streams and Private WebSocket streams. - Trading / writes: build signed requests with the Rust or Python SDK and your API key configuration; submit per the REST API and confirm on the socket where applicable.