fmpc_analyst_outlook: Pull analyst outlook for one or more securities

Description Usage Arguments Value Examples

View source: R/secDetails.R

Description

Analyst details for one or more securities includes earnings estimates, earnings surprises, stock grade, analyst recommendations, and company press releases

Usage

1
2
3
4
5
fmpc_analyst_outlook(
  symbols = c("AAPL"),
  outlook = c("surprise", "grade", "estimate", "recommend", "press"),
  limit = 100
)

Arguments

symbols

one or more symbols from the FMP available list that can be found using fmpc_symbols_available. A valid API token must be set in order to enable functionality. See documentation for setting a token under fmpc_set_token.

outlook

can be one of: 'surprise' for earnings surprise, 'grade' for stock grade', 'estimateAnnl' for analysts annual estimates, 'estimateQtr' for analysts quarterly estimate, 'recommend' for analyst recommendations, and 'press' for company press releases

limit

limit results for each ticker

Value

data frame of ratings data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

# Demo can pull AAPL
fmpc_set_token()
fmpc_analyst_outlook('AAPL')

# For multiple symbols, set a valid API Token
fmpc_set_token('FMPAPIKEY')
fmpc_analyst_outlook(c('AAPL','MSFT','SPY'))


## End(Not run)

fmpcloudr documentation built on March 2, 2021, 1:06 a.m.