ibapi 1.2.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
use ibapi::orders::ExecutionFilter;
use ibapi::Client;

fn main() -> anyhow::Result<()> {
    env_logger::init();

    let mut filter = ExecutionFilter::default();

    filter.client_id = Some(32);
    // filter.account_code = account_code.to_owned();
    // filter.time = time.to_owned();
    // filter.symbol = symbol.to_owned();
    // filter.security_type = security_type.to_owned();
    // filter.exchange = exchange.to_owned();
    // filter.side = side.to_owned();

    let client = Client::connect("127.0.0.1:4002", 100)?;

    let subscription = client.executions(filter)?;
    for execution in &subscription {
        println!("{execution:?}")
    }

    Ok(())
}