Crates.io | clearstreet |
lib.rs | clearstreet |
version | |
source | src |
created_at | 2025-04-27 15:21:43.633529+00 |
updated_at | 2025-05-10 22:06:03.147826+00 |
description | Clear Street SDK for Rust |
homepage | |
repository | |
max_upload_size | |
id | 1651232 |
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` |
size | 0 |
Rust library providing an API interface to the public endpoints offered by Clear Street.
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.
reqwest
.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(())
}
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
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.
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.