> ## 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.

# SDKs and examples

> Official Rust and Python SDKs, plus contracts for codegen and WebSocket types.

RocketFi ships **first-party SDKs** for integrations against RocketChain and the trading APIs documented on this site. For product and chain context (RocketBFT, matching engine, RocketFi features), see the **[Rocket Foundation quickstart](https://rocketfoundation.gitbook.io/rocket-docs/rocket/quickstart)** and the wider **[Rocket documentation](https://rocketfoundation.gitbook.io/rocket-docs/)**.

## Official SDKs

| SDK        | Repository                                                                                  | Use for                                                               |
| ---------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| **Rust**   | [rocketfoundation/rocket-sdk-rust](https://github.com/rocketfoundation/rocket-sdk-rust)     | Native RocketChain / RocketFi clients and on-chain workflows in Rust. |
| **Python** | [rocketfoundation/rocket-sdk-python](https://github.com/rocketfoundation/rocket-sdk-python) | Trading, REST, and automation in Python.                              |

Use the README and examples in each repo for installation, versioning, and environment-specific configuration (beta, testnet, etc.).

## API contracts (REST and WebSockets)

Keep generated or hand-written code aligned with the deployed API:

* **REST:** [OpenAPI JSON](https://beta.rocket-cluster-1.com/docs/openapi.json) — this documentation site also keeps an enriched copy at `specs/openapi.json` for page generation.
* **WebSockets:** [AsyncAPI](https://beta.rocket-cluster-1.com/docs/ws-asyncapi.yaml) for stream shapes and message types.

For third-party codegen only (not a substitute for the official SDKs), tools such as OpenAPI Generator or Speakeasy can consume the OpenAPI document; AsyncAPI-aware generators can help with typed client messages where supported.

## Versioning

Pin SDK versions and any generated stubs to **released** API snapshots when you need reproducible builds: export `/docs/openapi.json` and `/docs/ws-asyncapi.yaml` from the environment you target and record the hash or release tag in your project.
