yahoo_tick_grabber 0.1.7

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

use yahoo_tick_grabber::YAHOOCONNECT;
mod response;
use response::{QueryResponse};

#[tokio::main]
async fn main() -> Result<(),()> {
    let s = YAHOOCONNECT::new().await.unwrap();
    let guts = s.get_ticker("TSLA240614C00075000").await.unwrap();

    println!("{:?}",guts.quoteResponse.result);

    Ok(())
}