FMP#
- class quantflow.data.fmp.FMP(session: S | None = None, content_type: str = 'application/json', session_owner: bool = False, ResponseError: Type[HttpResponseError] = <class 'fluid.utils.http_client.HttpResponseError'>, ok_status: frozenset = frozenset({200, 201}), default_headers: dict[str, str] = <factory>, url: str = 'https://financialmodelingprep.com/api', key: str = <factory>)#
Financial Modeling Prep API client
Fetch market and financial data from Financial Modeling Prep.
Classes:
FMP historical frequencies
Methods:
Dividend calendar
Company quote - real time
Company Insider Trading
Company quote - real time
Stock peers based on sector, exchange and market cap
Historical prices, daily if frequency is not provided
Company profile - minute
Company quote - real time
Company rating - real time
Company financial ratios - if period not provided it is for the trailing 12 months
- class freq(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)#
FMP historical frequencies
- async dividends(from_date: str | date = '', to_date: str | date = '', **kw: Any) list[dict] #
Dividend calendar
- async executives(ticker: str, **kw: Any) list[dict] #
Company quote - real time
- async insider_trading(ticker: str, **kw: Any) list[dict] #
Company Insider Trading
- async news(*tickers: str, **kw: Any) list[dict] #
Company quote - real time
- async peers(*tickers: str, **kw: Any) list[dict] #
Stock peers based on sector, exchange and market cap
- async prices(ticker: str, frequency: str = '', to_date: bool = False, **kw: Any) DataFrame #
Historical prices, daily if frequency is not provided
- async profile(*tickers: str, **kw: Any) list[dict] #
Company profile - minute
- async quote(*tickers: str, **kw: Any) list[dict] #
Company quote - real time
- async rating(ticker: str, **kw: Any) list[dict] #
Company rating - real time
- async ratios(ticker: str, period: str | None = None, limit: int | None = None, **kw: Any) list[dict] #
Company financial ratios - if period not provided it is for the trailing 12 months