fmp 0.2.3

Financial Modeling Prep API Wrapper
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod helpers;
use fmp::period::FMPPeriod;
use helpers::client::get_client;

#[tokio::test]
async fn test_analyst_estimates() {
    let fmp = get_client();

    let result = fmp.analyst_estimates("AAPL", FMPPeriod::YEAR).await;

    let estimates = result.unwrap();
    let estimate = estimates.first().unwrap();
    assert_eq!(estimate.symbol, "AAPL")
}