Pacifica Rust SDK
This is a community Rust SDK for the Pacifica exchange.
It provides both Asynchronous REST and WebSocket clients, utilities for tick/lot handling, signing, etc., and typed models for working with the API.
⚠️ API Stability Notice
This SDK interacts with an exchange that is currently in beta.
The API changes frequently and without prior notice, including modifications to fields, methods, and data structures.
Because of this:
- Major versions will continue to change as long as fields or methods are added, removed, or modified.
- Backward compatibility is not guaranteed between releases.
- Some modules or endpoints may change or be removed at any time.
- Always review the changelog before updating.
The SDK is actively maintained to keep up with upstream changes,
but API instability should be expected while the exchange remains in beta.
Table of Contents
- Installation
- Usage example
- Project structure
Installation
Add this SDK as a dependency in Cargo.toml:
For the latest development version from GitHub:
[]
= { = "https://github.com/Neiroleptik/pacifica_rust_sdk.git", = "main" }
For the latest stable version on crates.io:
= "x.y.z"
Note: The GitHub version may contain the latest features and fixes, but it could be unstable.
The crates.io version is stable and recommended for production use.
Usage example
use ExchangeError;
use RestClient;
use InfoClient;
use MarketModel;
async
If WebSocket is enabled, you can subscribe to channels and receive live updates.
Project structure
rest- REST client and HTTP utilitiesws- WebSocket client and subscriptionsinfo- information client for market metadataexchange- exchange client (info client included)common- errors, tick/lot utils, helpersmodels- typed request/response structurebin- examples for using all SDK methods
💡 Contributions are welcome!
If you encounter outdated structures, missing fields, or other inconsistencies -
feel free to open an issue or submit a pull request.