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.
Table of Contents
- Installation
- Usage example
- Project structure
- Async and error handling
Installation
Add this SDK as a dependency in Cargo.toml:
[]
= { = "https://github.com/Neiroleptik/pacifica_rust_sdk.git", = "main" }
Once published to crates.io, it can be added by version:
= "0.x.y"
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 metadatacommon- errors, tick/lot utils, helpersmodels- typed request/response structure