Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.rocketfi.io/llms.txt

Use this file to discover all available pages before exploring further.

What you can build

RocketFi exposes a REST API for instruments, market statistics, account state, vaults, bridge activity, and submitting transactions where the OpenAPI allows. A WebSocket API on /ws streams live updates: public feeds for books, marks, funding, and candles, and private feeds for orders, trades, and balances — see Public WebSocket streams and Private WebSocket streams. Subscription kinds and payloads are defined in AsyncAPI. Integrations are usually asynchronous: treat REST success as acceptance into a pipeline, then confirm outcomes on the socket or with follow-up REST reads.

Where to go next

GoalStart here
Keys, first REST call, WebSocket handshakeGetting started
Hosts, Swagger, OpenAPI, AsyncAPI URLsEnvironments
Market data RESTPublic REST-API
Account and trading RESTPrivate REST-API
Generated REST operationsSidebar Public REST-API / Private REST-API
Stream schemas and playgroundWebSocket API
Live contracts for automation and codegen:
ContractWhere
OpenAPI (hosted)…/docs/openapi.json
OpenAPI (docs site)specs/openapi.json in this repo — enriched for Mintlify (examples + tables); run node scripts/enrich-openapi-rest-docs.mjs after edits
AsyncAPI…/docs/ws-asyncapi.yaml
Swagger UI…/docs/
When the API changes, update the repo spec, re-run the enrichment script if needed, and redeploy Mintlify so published pages stay accurate.