| Crates.io | alpaca-trade-api-rust |
| lib.rs | alpaca-trade-api-rust |
| version | 0.0.3 |
| created_at | 2025-12-06 09:51:01.407194+00 |
| updated_at | 2025-12-08 19:15:57.717523+00 |
| description | The Alpaca trading api client implement in Rust. |
| homepage | https://github.com/YueLiRex/alpaca-trade-api-rust |
| repository | https://github.com/YueLiRex/alpaca-trade-api-rust |
| max_upload_size | |
| id | 1969916 |
| size | 220,958 |
Alpaca-trade-api-rust as the name suggests. It is a Rust implementation of alpaca trading api. It allows you to interact with alpaca with its restful api.
use alpaca_trade_api_rust::prelude::Client;
let client = Client::new(
"localhost:8080".to_string(),
"testApiKey".to_string(),
"testApiSecretKey".to_string(),
);
let orders_query = AllOrdersQueryParameter {
status: Some(OrderStatus::Open),
limit: Some(50),
after: None,
until: None,
direction: Some(OrdersDirection::Desc),
nested: Some(true),
symbols: Some(ComaSeparatedStrings {
values: vec!["AAPL", "TSLA"],
}),
side: None,
asset_class: Some(ComaSeparatedStrings {
values: vec!["us_option", "crypto"],
}),
before_order_id: None,
after_order_id: None,
};
client.get_all_orders(&orders_query).await?
This repo is still in development. Welcome to submit an issue to li.yue.rex@gmail.com