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
//! News Article example
//!
//! # Usage
//!
//! ```bash
//! cargo run --no-default-features --features sync --example news_article
//! ```

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

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

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

    // See historical_news example for getting provider_code and article_id
    let provider_code = "DJ-N";
    let article_id = "DJ-N$1915168d";

    let article = client.news_article(provider_code, article_id).expect("request news article failed");
    println!("{article:?}");
}