FMP¶
Reference information for the Financial Modeling Prep (FMP) data fetching module. You can find more information about FMP at FMP developer docs.
You can import the module via
quantflow.data.fmp.FMP
dataclass
¶
Bases: AioHttpClient
Financial Modeling Prep API client
key
class-attribute
instance-attribute
¶
freq
¶
Bases: StrEnum
FMP historical frequencies
market_risk_premium
async
¶
stocks
async
¶
etfs
async
¶
indices
async
¶
Retrieve a comprehensive list of stock market indexes across global exchanges
profile
async
¶
Company profile - minute
| PARAMETER | DESCRIPTION |
|---|---|
*tickers
|
One or more ticker symbols
TYPE:
|
quote
async
¶
Company quote - real time
| PARAMETER | DESCRIPTION |
|---|---|
*tickers
|
One or more ticker symbols
TYPE:
|
dividends
async
¶
Dividend calendar
| PARAMETER | DESCRIPTION |
|---|---|
from_date
|
Start date for dividend calendar
TYPE:
|
to_date
|
End date for dividend calendar
TYPE:
|
Source code in quantflow/data/fmp.py
executives
async
¶
Company quote - real time
| PARAMETER | DESCRIPTION |
|---|---|
ticker
|
Ticker symbol
TYPE:
|
insider_trading
async
¶
Company Insider Trading
| PARAMETER | DESCRIPTION |
|---|---|
ticker
|
Ticker symbol
TYPE:
|
rating
async
¶
Company rating - real time
| PARAMETER | DESCRIPTION |
|---|---|
ticker
|
Ticker symbol
TYPE:
|
etf_holders
async
¶
ratios
async
¶
Company financial ratios - if period not provided it is for the trailing 12 months
| PARAMETER | DESCRIPTION |
|---|---|
ticker
|
Ticker symbol
TYPE:
|
period
|
Reporting period (e.g., 'annual', 'quarter')
TYPE:
|
limit
|
Maximum number of results
TYPE:
|
Source code in quantflow/data/fmp.py
peers
async
¶
Stock peers based on sector, exchange and market cap
| PARAMETER | DESCRIPTION |
|---|---|
*tickers
|
One or more ticker symbols
TYPE:
|
Source code in quantflow/data/fmp.py
news
async
¶
Company quote - real time
| PARAMETER | DESCRIPTION |
|---|---|
*tickers
|
One or more ticker symbols
TYPE:
|
Source code in quantflow/data/fmp.py
search
async
¶
| PARAMETER | DESCRIPTION |
|---|---|
query
|
Search query string
TYPE:
|
exchange
|
Filter by exchange
TYPE:
|
limit
|
Maximum number of results
TYPE:
|
symbol
|
Search by symbol instead of name
TYPE:
|
Source code in quantflow/data/fmp.py
prices
async
¶
Historical prices, daily if frequency is not provided
| PARAMETER | DESCRIPTION |
|---|---|
symbol
|
Ticker symbol
TYPE:
|
frequency
|
Price frequency (e.g., '1min', '5min', 'daily')
TYPE:
|
from_date
|
From date for historical prices
TYPE:
|
to_date
|
To date for historical prices
TYPE:
|
convert_to_date
|
Convert date column to datetime type
TYPE:
|
Source code in quantflow/data/fmp.py
sector_performance
async
¶
| PARAMETER | DESCRIPTION |
|---|---|
from_date
|
Start date for historical sector performance
TYPE:
|
to_date
|
End date for historical sector performance
TYPE:
|
summary
|
Return summary instead of daily performance
TYPE:
|
params
|
Additional query parameters
TYPE:
|
Source code in quantflow/data/fmp.py
sector_pe
async
¶
forex_list
async
¶
historical_frequencies
¶
historical_frequencies_annulaized
¶
crypto_list
async
¶
get_path
async
¶
| PARAMETER | DESCRIPTION |
|---|---|
path
|
API endpoint path
TYPE:
|
join
¶
| PARAMETER | DESCRIPTION |
|---|---|
*tickers
|
One or more ticker symbols
TYPE:
|
params
¶
| PARAMETER | DESCRIPTION |
|---|---|
params
|
Query parameters dictionary
TYPE:
|