ibapi 5.4.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
//! Market Rule example
//!
//! # Usage
//!
//! ```bash
//! cargo run --no-default-features --features sync --example market_rule
//! ```

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

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

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

    let market_rule_id = 12;
    let results = client.market_rule(market_rule_id).unwrap();

    println!("rule: {results:?}");
}