-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
112 lines (58 loc) · 1.65 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
title: "fmpr"
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
eval = FALSE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
The goal of fmpr is to provide a lightweight R interface to the Financial Modeling Prep API
### Installation
You can install the development version from [GitHub](https://github.com/zac-garland/fmpr) with:
```{r, eval=FALSE}
## install.packages("devtools")
devtools::install_github("zac-garland/fmpr")
```
```{r, eval=FALSE}
library(fmpr)
```
## set api key
```{r, eval=FALSE}
fmp_api_key("demo")
```
## company meta data
```{r}
fmp_company_profile(ticker = "AAPL")
fmp_historical_earning_calendar(ticker = "AAPL")
fmp_rating(ticker = "AAPL")
```
## financial statements
```{r}
fmp_balance_sheet(ticker = "AAPL", period = "quarter")
fmp_cash_flow_statement(ticker = "AAPL", period = "quarter")
fmp_income_statement(ticker = "AAPL", period = "quarter")
```
## financial metrics
```{r}
fmp_discounted_cash_flow(ticker = "AAPL")
fmp_enterprise_value(ticker = "AAPL", period = "quarter")
fmp_financial_growth(ticker = "AAPL", period = "quarter")
fmp_historical_discounted_cash_flow(ticker = "AAPL", period = "quarter")
fmp_key_metrics(ticker = "AAPL", period = "quarter")
fmp_ratios(ticker = "AAPL", period = "quarter")
```
## stock prices
```{r}
fmp_intraday(ticker = "AAPL", freq = "1min")
fmp_historical_price(ticker = "AAPL")
fmp_quote(ticker = "AAPL")
fmp_quote_short(ticker = "AAPL")
fmp_stock_dividend(ticker = "AAPL")
fmp_stock_split(ticker = "AAPL")
```