Crates.io | fmp |
lib.rs | fmp |
version | 0.2.3 |
source | src |
created_at | 2022-08-23 18:53:56.920226 |
updated_at | 2022-08-26 22:47:07.808501 |
description | Financial Modeling Prep API Wrapper |
homepage | https://github.com/fcote/fmp-rs |
repository | https://github.com/fcote/fmp-rs |
max_upload_size | |
id | 651174 |
size | 32,280 |
fmp-rs is a wrapper for the Financial Modeling Prep Web API.
This is only a partial implementation, feel free to submit a pull request for new endpoints. Also it currently only supports async, a pull request for a blocking client would be welcome.
To learn how to use fmp-rs, please refer to the usage section below.
[dependencies]
fmp = "0.2"
use fmp::Client;
use fmp::period::FMPPeriod;
#[tokio::main]
async fn main() {
let client = Client::new(
"https://financialmodelingprep.com/api",
"<FMP_API_KEY>",
)
let result = fmp.income_statements("AAPL", FMPPeriod::YEAR).await;
let statements = result.unwrap();
println!("{:?}", statements);
}
/v3/search?query=AA
/v3/stock/list
/v3/quote/AAPL
/v3/historical-price-full/AAPL
/v3/analyst-estimates/AAPL
/v3/profile/AAPL
/v3/historical/earning_calendar/AAPL?limit=80
/v4/earning_call_transcript?symbol=AAPL
/v3/earning_call_transcript/AAPL?quarter=3&year=2020
/v3/income-statement/AAPL?period=quarter
/v3/balance-sheet-statement/AAPL?period=quarter
/v3/cash-flow-statement/AAPL?period=quarter
/v3/quotes/forex
/v3/stock_news?tickers=AAPL&limit=50
If you find any problems or have suggestions about this crate, please submit an issue. Moreover, any pull request, code review and feedback are welcome.