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"
)
A parsed JSON response from the FMP API.
The specific API resource to be accessed, such as a stock symbol or financial endpoint.
Additional query parameters to be included in the API request.
The base URL for the FMP API. Defaults to "https://financialmodelingprep.com/api/".
The version of the FMP API to use. Defaults to "v3".