financialdatapy.financials module¶
This module states abstract class for financial statements.
- class financialdatapy.financials.Financials(symbol: str, financial: str = 'income_statement', period: str = 'annual')[source]¶
Bases:
abc.ABCAbstract class representing financial statements of a company.
- Parameters
symbol (str) – Symbol of a company.
financial (str, optional) – One of the three financial statement. ‘income_statement’ or ‘balance_sheet’ or ‘cash_flow’, defaults to ‘income_statement’.
period (str, optional) – Either ‘annual’ or ‘quarter’, defaults to ‘annual’.
- property symbol: str¶
Getter method of property symbol.
- Returns
Symbol of a company.
- Return type
str
- property financial: str¶
Getter method of property financial.
- Returns
Selected type of financial statement.
- Return type
str
- property period: str¶
Getter method of property period.
- Returns
Selected period of financial statement.
- Return type
str
- class financialdatapy.financials.UsFinancials(symbol: str, financial: str = 'income_statement', period: str = 'annual')[source]¶
Bases:
financialdatapy.financials.FinancialsA class representing financial statements of a company in US.
- Parameters
symbol (str) – Symbol of a company.
financial (str, optional) – One of the three financial statement. ‘income_statement’ or ‘balance_sheet’ or ‘cash_flow’, defaults to ‘income_statement’.
period (str, optional) – Either ‘annual’ or ‘quarter’, defaults to ‘annual’
- class financialdatapy.financials.KorFinancials(symbol: str, financial: str = 'income_statement', period: str = 'annual')[source]¶
Bases:
financialdatapy.financials.FinancialsClass representing financial statements of stocks in Korea Exchange.
- Parameters
symbol (str) – Symbol of a company/stock.
financial (str, optional) – Which financial statement to retrieve, defaults to ‘income_statement’.
period (str, optional) – Either ‘annual’ or ‘quarter’, defaults to ‘annual’.
api_key (str) – Api key for opendart.fss.or.kr, defaults to None.