ibapi 2.11.2

A Rust implementation of the Interactive Brokers TWS API, providing a reliable and user friendly interface for TWS and IB Gateway. Designed with a focus on simplicity and performance.
Documentation
//! Readme Connection example
//!
//! # Usage
//!
//! ```bash
//! cargo run --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}");
}