finance-query 3.0.0

A Rust library for querying financial data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// @generated by `cargo soothfast docs gen-tests`
// source: docs/library/tickers.md line 34
use finance_query::{Region, Tickers};
use std::time::Duration;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let tickers = Tickers::builder(vec!["AAPL", "MSFT"])
        .region(Region::UnitedStates)
        .timeout(Duration::from_secs(30))
        .build()
        .await?;
    println!("{} tickers", tickers.len());
    Ok(())
}