ax-exchange-sdk 13.35.0

ArchitectX SDK
Documentation

ax-exchange-sdk

Rust SDK for the ArchitectX derivatives exchange.

Provides typed REST and WebSocket clients for market data, order management, and account operations with automatic token management.

Quick Start

[dependencies]
ax-exchange-sdk = { git = "https://github.com/architect-xyz/adx.git" }
tokio = { version = "1", features = ["full"] }
anyhow = "1"
use ax_exchange_sdk::ArchitectX;
use anyhow::Result;

#[tokio::main]
async fn main() -> Result<()> {
    let client = ArchitectX::sandbox("your-api-key", "your-api-secret")?;

    let api = client.api_gateway()?;
    let instruments = api.get_instruments().await?;
    println!("{:?}", instruments);

    Ok(())
}

Features

  • REST clients for API Gateway and Order Gateway
  • WebSocket clients for streaming market data and order management
  • Automatic bearer token caching and refresh
  • Typed request/response structs with serde
  • Local order book maintenance via WebSocket

Documentation

License

AGPL-3.0-only