yahoo_tick_grabber 1.0.0

A wrapper API around reqwest library that as of currently returns a string containing the information about a ticker off Yahoo Finance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use yahoo_tick_grabber::{fin_retypes::FinResult, YAHOOCONNECT};
#[tokio::main]
async fn main() -> Result<(), ()> {
    let s = YAHOOCONNECT::new().await.unwrap();
    let guts = s
        .get_ticker("NVDA,TSLA240719C00050000,AAPL,RTX,nwm.AX,CXO.ax")
        .await
        .unwrap();

    for b in guts {
        match b {
            FinResult::EQUITY(_) => println!("equity found"),
            FinResult::OPTION(_) => println!("option found"),
        }
    }

    Ok(())
}