Description Usage Arguments Value Examples
Last traded price with additional price metrics such as 50D and 200D avg price, volume, shares outstanding, and more. This does NOT include a quote, such as bid/ask detail.
1 | fmpc_price_current(symbols = c("AAPL"))
|
symbols |
one or more symbols from the FMP available list that can be
found using |
data frame of current price details
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# Setting API key to 'demo' allows for AAPL only
fmpc_set_token()
fmpc_price_current('AAPL')
# For multiple symbols, set a valid API Token
fmpc_set_token('FMPAPIKEY')
fmpc_price_current(c('AAPL', 'MSFT', 'TSLA', 'SPY', 'BTCUSD', 'JPYUSD', '^SP500TR'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.