warren 0.1.7

A tool for value investors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;
use clap::Parser;

use warren::get_report;

#[derive(Parser)]
/// Checks the recent price history for a given stock symbol and reports whether it's a good buy.
struct Args {
    /// Stock or fund symbol
    stock: String,
}

fn main() -> Result<()> {
    let args = Args::parse();
    let report = get_report(&args.stock)?;
    println!("{report}");
    Ok(())
}