perform_request | R Documentation |
This function sends a request to the Financial Modeling Prep (FMP) API based on the specified resource and additional query parameters. It constructs the request URL using the base API URL and the specified version, and it automatically includes the API key from the environment.
perform_request(
resource,
params,
base_url = "https://financialmodelingprep.com/api/",
api_version = "v3"
)
resource |
The specific API resource to be accessed, such as a stock symbol or financial endpoint. |
params |
Additional query parameters to be included in the API request. |
base_url |
The base URL for the FMP API. Defaults to "https://financialmodelingprep.com/api/". |
api_version |
The version of the FMP API to use. Defaults to "v3". |
A parsed JSON response from the FMP API.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.