ibapi 5.2.0

An unofficial Rust client for the Interactive Brokers TWS API. Async (Tokio) and blocking clients for TWS and IB Gateway.
Documentation
//! Readme Connection example
//!
//! # Usage
//!
//! ```bash
//! cargo run --no-default-features --features sync --example readme_connection
//! ```

/// Example of connecting to TWS.
use ibapi::client::blocking::Client;

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

    let connection_url = "127.0.0.1:4002";

    let _client = Client::connect(connection_url, 100).expect("connection to TWS failed!");
    println!("Successfully connected to TWS at {connection_url}");
}