clearstreet

Crates.ioclearstreet
lib.rsclearstreet
version
sourcesrc
created_at2025-04-27 15:21:43.633529+00
updated_at2025-05-10 22:06:03.147826+00
descriptionClear Street SDK for Rust
homepage
repository
max_upload_size
id1651232
Cargo.toml error:TOML parse error at line 22, column 1 | 22 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Dallin Wright (dallinwright)

documentation

README

Clear Street Rust SDK

License: AGPLv3

Rust library providing an API interface to the public endpoints offered by Clear Street.

NOTE

This is a very rough work in progress. It is incomplete, mising features with shortcuts taken. Feel free to open a PR. The sqlx mappings to work with orms should be behind a feature, enum mappings and safety added and all that.

Features

  • Fully asynchronous Rust client based on reqwest.
  • Typed models for Clear Street public API requests and responses.
  • Ready-to-integrate into trading systems, research tools, or financial applications.
  • Minimal external dependencies for high performance.

Installation

Add the SDK to your Cargo.toml:

[dependencies]
clearstreet_sdk = { git = "https://github.com/YOUR_USERNAME/clearstreet-rust-sdk.git", branch = "main" }
use clearstreet_sdk::ClearStreetClient;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Initialize the client
    let client = ClearStreetClient::new();

    // Fetch market data for a symbol
    let market_data = client.get_market_data("AAPL").await?;

    println!("{:?}", market_data);

    Ok(())
}

Roadmap

  • Implement authenticated/private endpoints

  • Add support for WebSocket streaming (if provided by Clear Street)

  • Improve error handling and expose structured API errors

  • Full test coverage

  • Publish as an open-source crate

Contributing

Contributions are welcome!

Please open an issue to discuss any major changes before submitting a pull request.

Code should pass cargo fmt and cargo clippy.

All pull requests must include relevant tests where applicable.

License

This project is licensed under a modified GNU Affero General Public License v3 (AGPLv3) with additional restrictions:

You are allowed to use, modify, and integrate this software for commercial purposes.
However, you are prohibited from selling the software itself, or modified versions thereof, as a standalone product or as part of any product offering.

For full license terms, see LICENSE.

Commit count: 0

cargo fmt