bullet-rust-sdk 0.0.43

Rust SDK for the Bullet trading platform
docs.rs failed to build bullet-rust-sdk-0.0.43
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: bullet-rust-sdk-0.40.0

Bullet Rust SDK

Crates.io Documentation License: MIT

Rust client for the Bullet trading API, with JavaScript/TypeScript bindings.

Rust quickstart

[dependencies]
bullet-rust-sdk = "*"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
use bullet_rust_sdk::Client;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let client = Client::mainnet().await?;
    let info = client.exchange_info().await?.into_inner();
    println!("Symbols: {}", info.symbols.len());
    Ok(())
}

For signing, order submission and streaming, see the Rust API and runnable examples.

JavaScript/TypeScript

npm install @bulletxyz/sdk-wasm

See the npm usage guide and platform examples.

Development

The REST client is generated from committed rust/openapi.json; normal builds do not fetch a schema. Refresh it with just refresh-spec when the Trading API changes. Rust and WASM public APIs must stay in sync. See WASM codegen for the generated-source boundary and just --list for development commands.