Skip to content

Commit

Permalink
Merge branch 'develop' into release/4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
the-praxs authored Jan 3, 2024
2 parents fb13aec + 5c4ac28 commit 004cfb5
Show file tree
Hide file tree
Showing 8 changed files with 548 additions and 56 deletions.
202 changes: 197 additions & 5 deletions openbb_platform/providers/fmp/openbb_fmp/models/balance_sheet.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""FMP Balance Sheet Model."""

# pylint: disable=unused-argument
from datetime import (
date as dateType,
datetime,
Expand Down Expand Up @@ -33,7 +33,7 @@ class FMPBalanceSheetData(BalanceSheetData):
"fiscal_year": "calendarYear",
"filing_date": "fillingDate",
"accepted_date": "acceptedDate",
"currency": "reportedCurrency",
"reported_currency": "reportedCurrency",
"cash_and_cash_equivalents": "cashAndCashEquivalents",
"short_term_investments": "shortTermInvestments",
"cash_and_short_term_investments": "cashAndShortTermInvestments",
Expand Down Expand Up @@ -69,11 +69,11 @@ class FMPBalanceSheetData(BalanceSheetData):
"common_stock": "commonStock",
"retained_earnings": "retainedEarnings",
"accumulated_other_comprehensive_income": "accumulatedOtherComprehensiveIncomeLoss",
"other_stock_holders_equity": "otherStockholdersEquity",
"other_total_stock_holders_equity": "othertotalStockholdersEquity",
"other_shareholders_equity": "otherStockholdersEquity",
"other_total_shareholders_equity": "othertotalStockholdersEquity",
"total_common_equity": "totalStockholdersEquity",
"total_equity_non_controlling_interests": "totalEquity",
"total_liabilities_shareholders_equity": "totalLiabilitiesAndStockholdersEquity",
"total_liabilities_and_shareholders_equity": "totalLiabilitiesAndStockholdersEquity",
"minority_interest": "minorityInterest",
"total_liabilities_and_total_equity": "totalLiabilitiesAndTotalEquity",
"total_investments": "totalInvestments",
Expand All @@ -91,6 +91,198 @@ class FMPBalanceSheetData(BalanceSheetData):
default=None,
description="The date and time when the filing was accepted.",
)
reported_currency: Optional[str] = Field(
default=None,
description="The currency in which the balance sheet was reported.",
)
cash_and_cash_equivalents: Optional[float] = Field(
default=None,
description="Cash and cash equivalents.",
)
short_term_investments: Optional[float] = Field(
default=None,
description="Short term investments.",
)
cash_and_short_term_investments: Optional[float] = Field(
default=None,
description="Cash and short term investments.",
)
net_receivables: Optional[float] = Field(
default=None,
description="Net receivables.",
)
inventory: Optional[float] = Field(
default=None,
description="Inventory.",
)
other_current_assets: Optional[float] = Field(
default=None,
description="Other current assets.",
)
total_current_assets: Optional[float] = Field(
default=None,
description="Total current assets.",
)
plant_property_equipment_net: Optional[float] = Field(
default=None,
description="Plant property equipment net.",
)
goodwill: Optional[float] = Field(
default=None,
description="Goodwill.",
)
intangible_assets: Optional[float] = Field(
default=None,
description="Intangible assets.",
)
goodwill_and_intangible_assets: Optional[float] = Field(
default=None,
description="Goodwill and intangible assets.",
)
long_term_investments: Optional[float] = Field(
default=None,
description="Long term investments.",
)
tax_assets: Optional[float] = Field(
default=None,
description="Tax assets.",
)
other_non_current_assets: Optional[float] = Field(
default=None,
description="Other non current assets.",
)
non_current_assets: Optional[float] = Field(
default=None,
description="Total non current assets.",
)
other_assets: Optional[float] = Field(
default=None,
description="Other assets.",
)
total_assets: Optional[float] = Field(
default=None,
description="Total assets.",
)
accounts_payable: Optional[float] = Field(
default=None,
description="Accounts payable.",
)
short_term_debt: Optional[float] = Field(
default=None,
description="Short term debt.",
)
tax_payables: Optional[float] = Field(
default=None,
description="Tax payables.",
)
current_deferred_revenue: Optional[float] = Field(
default=None,
description="Current deferred revenue.",
)
other_current_liabilities: Optional[float] = Field(
default=None,
description="Other current liabilities.",
)
total_current_liabilities: Optional[float] = Field(
default=None,
description="Total current liabilities.",
)
long_term_debt: Optional[float] = Field(
default=None,
description="Long term debt.",
)
deferred_revenue_non_current: Optional[float] = Field(
default=None,
description="Non current deferred revenue.",
)
deferred_tax_liabilities_non_current: Optional[float] = Field(
default=None,
description="Deferred tax liabilities non current.",
)
other_non_current_liabilities: Optional[float] = Field(
default=None,
description="Other non current liabilities.",
)
total_non_current_liabilities: Optional[float] = Field(
default=None,
description="Total non current liabilities.",
)
other_liabilities: Optional[float] = Field(
default=None,
description="Other liabilities.",
)
capital_lease_obligations: Optional[float] = Field(
default=None,
description="Capital lease obligations.",
)
total_liabilities: Optional[float] = Field(
default=None,
description="Total liabilities.",
)
preferred_stock: Optional[float] = Field(
default=None,
description="Preferred stock.",
)
common_stock: Optional[float] = Field(
default=None,
description="Common stock.",
)
retained_earnings: Optional[float] = Field(
default=None,
description="Retained earnings.",
)
accumulated_other_comprehensive_income: Optional[float] = Field(
default=None,
description="Accumulated other comprehensive income (loss).",
)
other_shareholders_equity: Optional[float] = Field(
default=None,
description="Other shareholders equity.",
)
other_total_shareholders_equity: Optional[float] = Field(
default=None,
description="Other total shareholders equity.",
)
total_common_equity: Optional[float] = Field(
default=None,
description="Total common equity.",
)
total_equity_non_controlling_interests: Optional[float] = Field(
default=None,
description="Total equity non controlling interests.",
)
total_liabilities_and_shareholders_equity: Optional[float] = Field(
default=None,
description="Total liabilities and shareholders equity.",
)
minority_interest: Optional[float] = Field(
default=None,
description="Minority interest.",
)
total_liabilities_and_total_equity: Optional[float] = Field(
default=None,
description="Total liabilities and total equity.",
)
total_investments: Optional[float] = Field(
default=None,
description="Total investments.",
)
total_debt: Optional[float] = Field(
default=None,
description="Total debt.",
)
net_debt: Optional[float] = Field(
default=None,
description="Net debt.",
)
link: Optional[str] = Field(
default=None,
description="Link to the filing.",
)
final_link: Optional[str] = Field(
default=None,
description="Link to the filing document.",
)

@model_validator(mode="before")
@classmethod
Expand Down
Loading

0 comments on commit 004cfb5

Please sign in to comment.