Do Not Use This Package In Any Serious Capcity. Untested and still unstable. A WORK IN PROGRESS.
This project provides a Rust client for the Alpaca Trading API. It is designed to provide a fast, reliable, and efficient way to interact with Alpaca's trading platform. Still a WORK IN PROGRESS. Does not have all the endpoints for the Alpaca API.
To install the Alpaca API Client, you will need Rust installed on your machine. If you don't have Rust installed, you can follow the official guide.
Once Rust is installed, you can install the Alpaca API Client using cargo:
bash
cargo install alpaca_api_client
Add your API keys to a .env file in the root of your directory with these names.
bash
APCA_API_KEY_ID=
APCA_API_SECRET_KEY=
Simply import what you need.
```rust use crate::client::{getmultibars, MultiBars};
let watchlist: [&str; 30] = [ "META", "DIS", "CMCSA", "VZ", "T", "CHTR", "NFLX", "TMUS", "TWTR", "FOXA", "FOX", "DISH", "CBS", "OMC", "TME", "TTWO", "EA", "ATVI", "ZM", "MTCH", "IAC", "NTES", "BIDU", "ROKU", "SPOT", "LYV", "IQ", "HUYA", "DOYU", "VIAV", ];
let multibars: MultiBars = getmulti_bars(watchlist, "1Day", Some("start=2022-01-01")); ```
Any and all PR's are welcome. This is my first Rust project and my first foray into open source. I see a need for this type of Rust client to support Alpaca's v2 API.
This project is licensed under the MIT and APACHE License.