Description Usage Arguments Details Value Examples
FMP helper function that takes a URL, appends the API Token, makes a GET call, and parses the data
1 | fmpc_get_url(URL, api_version = "3")
|
URL |
The URL to pull specific data from FMP Cloud. Search parameters should be included, but not the API key. Start with the URL after 'api/v3' |
api_version |
The API version of the URL. FMP is constantly updating their API and new URLs may be under anew version |
This function is a helper in most other fmpcloudr functions, so does not need to be used by the end user. That being said, FMP is always adding data with new URLs. If this package does not have a URL available on FMP, this function can be used to simplify the GET call. Pass the URL appearing after 'api/v3' with the search parameters entered, but do not include the API token
list output of data set
1 2 3 4 5 6 7 8 | ## Not run:
# Set the FMP Token. The DEMO token has VERY limited access.
fmpc_set_token('demo')
# Pull price history for Apple
AppleHist = fmpc_get_url('historical-price-full/AAPL?serietype=line&')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.