ibapi 5.3.0

An unofficial Rust client for the Interactive Brokers TWS API: market data, orders, and account data, with async (Tokio) and blocking clients for TWS and IB Gateway.
Documentation
//! Managed accounts example
//!
//! This example demonstrates how to retrieve the list of managed accounts.
//!
//! # Usage
//!
//! ```bash
//! cargo run --no-default-features --features sync --example managed_accounts
//! ```

use ibapi::client::blocking::Client;

fn main() {
    env_logger::init();

    let client = Client::connect("127.0.0.1:4002", 101).expect("connection failed");

    let accounts = client.managed_accounts().expect("error requesting managed accounts");
    println!("managed accounts: {accounts:?}")
}