Skip to content

jcyamacho/yahoo-dl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yahoo-dl

download yahoo financial data

example

#[tokio::main]
async fn main() -> Result<()> {
    let mut yahoo = Yahoo::new();
    let res = yahoo
        .download::<Local>("GOOG", None, None, Period::Monthly, Event::History)
        .await?;
    println!("{}", res);
    Ok(())
}

result:

Date,Open,High,Low,Close,Adj Close,Volume
2004-08-01,49.813286,56.528118,47.800831,50.993862,50.993862,134241100
2004-09-01,51.158245,67.257904,49.285267,64.558022,64.558022,213503200
2004-10-01,65.155777,99.601669,64.209328,94.964050,94.964050,516060900
2004-11-01,96.413620,100.423584,80.353813,90.650223,90.650223,557267200
2004-12-01,90.635277,99.566803,83.920448,96.035034,96.035034,291772100
2005-01-01,98.331429,102.266678,87.815842,97.444756,97.444756,411865800
2005-02-01,96.827072,107.995209,90.162048,93.643997,93.643997,653658400
2005-03-01,94.291573,94.570526,85.962791,89.917969,89.917969,345184900
.....

events

  • History
  • Dividend
  • Split

periods

  • Daily
  • Weekly
  • Monthly

Releases

No releases published

Packages

 
 
 

Languages