tradier 0.1.1

This project involves the development of a Rust library for managing trades and market data using the Tradier broker API. The main objective is to provide an efficient and secure interface for executing trades, retrieving real-time quotes, managing portfolios, and accessing historical market data. The library focuses on leveraging Rust's performance and concurrency advantages, enabling integration into high-frequency trading applications and data-intensive financial processing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use tracing::info;
use tradier::http::TradierRestClient;
use tradier::utils::logger::setup_logger;
#[tokio::main]
async fn main() -> std::result::Result<(), Box<dyn core::error::Error>> {
    setup_logger();

    // Create a configuraton object
    let config = tradier::config::Config::new();
    info!("Config: {:?}", &config);

    let tradier_client = TradierRestClient::new(config);
    let user_profile_response = tradier_client.get_user_profile().await?;

    info!("User Profile: {:#?}", user_profile_response);
    Ok(())
}