Data Source Module

Data source modules for fetching financial data

Data Service

Data Sources

MT5 Source

Yahoo Finance Source

Alpha Vantage Source

Status Invest Source

class finpie.datasource.sources.status_invest.StatusInvestSource[source]

Bases: object

__init__()[source]
_respect_rate_limit()[source]

Ensure minimum time between requests

get_fundamentals_table(params)[source]

Fetch fundamentals data based on query parameters and return as DataFrame. Includes rate limiting and error handling.

Parameters:

params (FundamentalsParams) – FundamentalsParams object containing search criteria

Return type:

DataFrame

Returns:

pd.DataFrame containing the fundamentals data

Raises:
  • requests.exceptions.RequestException – If the request fails

  • ValueError – If the response cannot be parsed

get_dividends_history(ticker, by_year=False)[source]

Fetch dividends history for a given ticker.

Parameters:
  • ticker (str) – The ticker symbol of the stock

  • by_year (bool) – If True, return the dividends by year, otherwise return the dividends as paid

Return type:

DataFrame

get_revenue_history(ticker, by_year=False)[source]

Fetch revenue history for a given ticker.

Parameters:
  • ticker (str) – The ticker symbol of the stock

  • by_year (bool) – If True, return the revenue by year, otherwise return the revenue by quarter

Return type:

DataFrame

get_margins_history(ticker)[source]

Fetch margins (%) history for a given ticker.

Parameters:

ticker (str) – The ticker symbol of the stock

Return type:

DataFrame

get_balance_sheet_history(ticker)[source]

Fetch balance sheet history for a given ticker.

Parameters:

ticker (str) – The ticker symbol of the stock

Return type:

DataFrame