finzdata 0.2.0

Official Rust client for FinzData point-in-time market data: US stocks since 2000 (delisted included), every futures contract since 2007, point-in-time GEX, FX, indexes, crypto, COT, SEC fundamentals and vintage macro
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let fz = finzdata::blocking::Client::new().expect("client");
    for (name, r) in [
        ("fx", fz.fx_bars("EURUSD", Some("1day"), Some("2026-09-01"), Some("2026-09-05")).map(|r| r.len())),
        ("index", fz.index_bars("SPX", Some("1day"), Some("2026-09-01"), Some("2026-09-05")).map(|r| r.len())),
        ("crypto", fz.crypto_bars("BTC-USD", Some("1day"), Some("2026-09-01"), Some("2026-09-05")).map(|r| r.len())),
        ("prices", fz.prices("AAPL", Some("2026-09-01"), Some("2026-09-05"), None).map(|r| r.len())),
        ("cot", fz.cot(Some("legacy_fo"), Some("088691"), None, Some("2026-10-01"), None).map(|r| r.len())),
        ("gex", fz.gex("SPX", Some("2026-10-01"), Some("2026-10-05")).map(|r| r.len())),
        ("futures", fz.futures_daily("ES", None, true, None, Some("2026-10-20"), Some("2026-10-24")).map(|r| r.len())),
    ] { println!("{name}: {:?}", r.map_err(|e| e.to_string().chars().take(90).collect::<String>())); }
}