Skip to main content

Crate finzdata

Crate finzdata 

Source
Expand description

Official Rust client for FinzData point-in-time market data (16,000+ US stocks since 2000 incl. delisted, 139 futures markets with every contract since 2007, point-in-time GEX for single stocks, ETFs and major indexes, COT since 1986, SEC fundamentals as filed, 18,000+ macro series with every vintage). Get a free key at https://finzdata.com.

use finzdata::Client;
#[tokio::main]
async fn main() -> finzdata::Result<()> {
    let c = Client::new()?;
    let bars = c.prices("AAPL", Some("2024-01-01"), None, None).await?;
    println!("bars: {}", bars.len());
    let gex = c.gex("SPY", Some("2024-01-01"), None).await?;
    println!("gex: {}", gex.len());
    Ok(())
}

Modules§

blocking
Synchronous client with the same methods as Client; the caller needs no async runtime.

Structs§

Bar
Client
ClientBuilder
DatasetInfo
Fundamental
FuturesDay
One daily futures bar for a contract or the continuous series. status is preliminary on the newest session (volume preliminary, open interest not yet published) and final once the exchange publishes it.
GexDay
GexStrike
MacroObs
Me
MinuteBar
Response

Enums§

Error

Type Aliases§

Result
Row