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- 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 stockby_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 stockby_year (
bool) – If True, return the revenue by year, otherwise return the revenue by quarter
- Return type:
DataFrame