Expand description
§Precolator SDK
A production-ready async Rust client for the Precolator perpetual futures trading platform REST API.
§Features
- Full coverage of markets, portfolio, leaderboard, trades, tokens, and statistics endpoints
- Strongly-typed request/response models
- Async-first design using
tokio+reqwest - Configurable base URL for mainnet / devnet / self-hosted deployments
§Quick Start
use precolator_sdk::PrecolatorClient;
#[tokio::main]
async fn main() -> precolator_sdk::Result<()> {
let client = PrecolatorClient::new("https://precolator.xyz");
let markets = client.get_markets().await?;
println!("Active markets: {}", markets.len());
let stats = client.get_platform_stats().await?;
println!("Total volume: {}", stats.total_volume);
Ok(())
}Re-exports§
pub use client::PrecolatorClient;pub use error::PrecolatorError;pub use error::Result;pub use models::*;
Modules§
- client
- Async HTTP client for the Precolator REST API.
- error
- models
- Strongly-typed response models for every Precolator API endpoint.
Constants§
- SDK_
VERSION - SDK version