Copyright | (c) Owen Shepherd 2022 |
---|---|
License | MIT |
Maintainer | owen@owen.cafe |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data SimFinContext = SimFinContext {}
- data Industry general bank insurance
- data CompanyListingRow = CompanyListingRow {}
- data CompanyInfoRow = CompanyInfoRow {
- simFinId :: Int
- ticker :: Text
- companyName :: Text
- industryId :: Int
- monthFYEnd :: Int
- numberEmployees :: Int
- businessSummary :: Text
- data GeneralBalanceSheetRow = GeneralBalanceSheetRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- cashCashEquivalentsAndShortTermInvestments :: Maybe Integer
- cashAndCashEquivalents :: Maybe Integer
- shortTermInvestments :: Maybe Integer
- accountsAndNotesReceivable :: Maybe Integer
- accountsReceivableNet :: Maybe Integer
- notesReceivableNet :: Maybe Integer
- unbilledRevenues :: Maybe Integer
- inventories :: Maybe Integer
- rawMaterials :: Maybe Integer
- workInProcess :: Maybe Integer
- finishedGoods :: Maybe Integer
- otherInventory :: Maybe Integer
- otherShortTermAssets :: Maybe Integer
- prepaidExpenses :: Maybe Integer
- derivativeAndHedgingAssetsShortTerm :: Maybe Integer
- assetsHeldForSale :: Maybe Integer
- deferredTaxAssetsShortTerm :: Maybe Integer
- incomeTaxesReceivable :: Maybe Integer
- discontinuedOperationsShortTerm :: Maybe Integer
- miscShortTermAssets :: Maybe Integer
- totalCurrentAssets :: Maybe Integer
- propertyPlantAndEquipmentNet :: Maybe Integer
- propertyPlantAndEquipment :: Maybe Integer
- accumulatedDepreciation :: Maybe Integer
- longTermInvestmentsAndReceivables :: Maybe Integer
- longTermInvestments :: Maybe Integer
- longTermMarketableSecurities :: Maybe Integer
- longTermReceivables :: Maybe Integer
- otherLongTermAssets :: Maybe Integer
- intangibleAssets :: Maybe Integer
- goodwill :: Maybe Integer
- otherIntangibleAssets :: Maybe Integer
- prepaidExpense :: Maybe Integer
- deferredTaxAssetsLongTerm :: Maybe Integer
- derivativeAndHedgingAssetsLongTerm :: Maybe Integer
- prepaidPensionCosts :: Maybe Integer
- discontinuedOperationsLongTerm :: Maybe Integer
- investmentsinAffiliates :: Maybe Integer
- miscLongTermAssets :: Maybe Integer
- totalNoncurrentAssets :: Maybe Integer
- totalAssets :: Maybe Integer
- payablesAndAccruals :: Maybe Integer
- accountsPayable :: Maybe Integer
- accruedTaxes :: Maybe Integer
- interestAndDividendsPayable :: Maybe Integer
- otherPayablesAndAccruals :: Maybe Integer
- shortTermDebt :: Maybe Integer
- shortTermBorrowings :: Maybe Integer
- shortTermCapitalLeases :: Maybe Integer
- currentPortionOfLongTermDebt :: Maybe Integer
- otherShortTermLiabilities :: Maybe Integer
- deferredRevenueShortTerm :: Maybe Integer
- liabilitiesfromDerivativesAndHedgingShortTerm :: Maybe Integer
- deferredTaxLiabilitiesShortTerm :: Maybe Integer
- liabilitiesfromDiscontinuedOperationsShortTerm :: Maybe Integer
- miscShortTermLiabilities :: Maybe Integer
- totalCurrentLiabilities :: Maybe Integer
- longTermDebt :: Maybe Integer
- longTermBorrowings :: Maybe Integer
- longTermCapitalLeases :: Maybe Integer
- otherLongTermLiabilities :: Maybe Integer
- accruedLiabilities :: Maybe Integer
- pensionLiabilities :: Maybe Integer
- pensions :: Maybe Integer
- otherPostRetirementBenefits :: Maybe Integer
- deferredCompensation :: Maybe Integer
- deferredRevenueLongTerm :: Maybe Integer
- deferredTaxLiabilitiesLongTerm :: Maybe Integer
- liabilitiesfromDerivativesAndHedgingLongTerm :: Maybe Integer
- liabilitiesfromDiscontinuedOperationsLongTerm :: Maybe Integer
- miscLongTermLiabilities :: Maybe Integer
- totalNoncurrentLiabilities :: Maybe Integer
- totalLiabilities :: Maybe Integer
- preferredEquity :: Maybe Integer
- shareCapitalAndAdditionalPaidInCapital :: Maybe Integer
- commonStock :: Maybe Integer
- additionalPaidinCapital :: Maybe Integer
- otherShareCapital :: Maybe Integer
- treasuryStock :: Maybe Integer
- retainedEarnings :: Maybe Integer
- otherEquity :: Maybe Integer
- equityBeforeMinorityInterest :: Maybe Integer
- minorityInterest :: Maybe Integer
- totalEquity :: Maybe Integer
- totalLiabilitiesAndEquity :: Maybe Integer
- data BankBalanceSheetRow = BankBalanceSheetRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- cashCashEquivalentsAndShortTermInvestments :: Maybe Integer
- interbankAssets :: Maybe Integer
- fedFundsSoldAndRepos :: Maybe Integer
- otherInterbankAssets :: Maybe Integer
- shortAndLongTermInvestments :: Maybe Integer
- tradingSecurities :: Maybe Integer
- investmentSecuritiesAvailableforSale :: Maybe Integer
- investmentSecuritiesHeldtoMaturity :: Maybe Integer
- realEstateInvestments :: Maybe Integer
- otherInvestments :: Maybe Integer
- accountsAndNotesReceivable :: Maybe Integer
- netLoans :: Maybe Integer
- reserveforLoanLosses :: Maybe Integer
- totalLoans :: Maybe Integer
- totalCommercialLoans :: Maybe Integer
- commercialRealEstateLoans :: Maybe Integer
- otherCommercialLoans :: Maybe Integer
- totalConsumerLoans :: Maybe Integer
- creditCardLoans :: Maybe Integer
- homeEquityLoans :: Maybe Integer
- familyResidentialLoans :: Maybe Integer
- autoLoans :: Maybe Integer
- studentLoans :: Maybe Integer
- otherConsumerLoans :: Maybe Integer
- otherLoans :: Maybe Integer
- netFixedAssets :: Maybe Integer
- propertyPlantAndEquipmentNet :: Maybe Integer
- operatingLeaseAssets :: Maybe Integer
- otherFixedAssets :: Maybe Integer
- intangibleAssets :: Maybe Integer
- goodwill :: Maybe Integer
- otherIntangibleAssets :: Maybe Integer
- investmentsInAssociates :: Maybe Integer
- deferredTaxAssetsShortTerm :: Maybe Integer
- derivativesAndHedgingAssets :: Maybe Integer
- discontinuedOperationsAssets :: Maybe Integer
- customerAcceptancesAndLiabilities :: Maybe Integer
- otherAssets :: Maybe Integer
- totalAssets :: Maybe Integer
- totalDeposits :: Maybe Integer
- demandDeposits :: Maybe Integer
- interestBearingDeposits :: Maybe Integer
- savingDeposits :: Maybe Integer
- timeDeposits :: Maybe Integer
- otherDeposits :: Maybe Integer
- shortTermDebt :: Maybe Integer
- securitiesSoldUnderRepo :: Maybe Integer
- tradingAccountLiabilities :: Maybe Integer
- shortTermCapitalLeases :: Maybe Integer
- currentPortionofLongTermDebt :: Maybe Integer
- shortTermBorrowings :: Maybe Integer
- payablesBrokerDealers :: Maybe Integer
- longTermDebt :: Maybe Integer
- longTermCapitalLeases :: Maybe Integer
- longTermBorrowings :: Maybe Integer
- pensionLiabilities :: Maybe Integer
- pensions :: Maybe Integer
- otherPostRetirementBenefits :: Maybe Integer
- deferredTaxLiabilitiesShortTerm :: Maybe Integer
- derivativesAndHedgingLiabilities :: Maybe Integer
- discontinuedOperationsLiabilities :: Maybe Integer
- otherLiabilities :: Maybe Integer
- totalLiabilities :: Maybe Integer
- preferredEquity :: Maybe Integer
- shareCapitalAndAdditionalPaidInCapital :: Maybe Integer
- commonStock :: Maybe Integer
- additionalPaidInCapital :: Maybe Integer
- otherShareCapital :: Maybe Integer
- treasuryStock :: Maybe Integer
- retainedEarnings :: Maybe Integer
- otherEquity :: Maybe Integer
- equityBeforeMinorityInterest :: Maybe Integer
- minorityInterest :: Maybe Integer
- totalEquity :: Maybe Integer
- totalLiabilitiesAndEquity :: Maybe Integer
- data InsuranceBalanceSheetRow = InsuranceBalanceSheetRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- totalInvestments :: Maybe Integer
- fixedIncomeTradingAFSAndShortTermInv :: Maybe Integer
- loansAndMortgages :: Maybe Integer
- fixedIncomeSecuritiesHTM :: Maybe Integer
- equitySecurities :: Maybe Integer
- realEstateInvestments :: Maybe Integer
- otherInvestments :: Maybe Integer
- cashCashEquivalentsAndShortTermInvestments :: Maybe Integer
- accountsAndNotesReceivable :: Maybe Integer
- propertyPlantAndEquipmentNet :: Maybe Integer
- deferredPolicyAcquisitionCosts :: Maybe Integer
- otherAssets :: Maybe Integer
- totalAssets :: Maybe Integer
- insuranceReserves :: Maybe Integer
- reserveForOutstandingClaimsAndLosses :: Maybe Integer
- premiumReserveUnearned :: Maybe Integer
- lifePolicyBenefits :: Maybe Integer
- otherInsuranceReserves :: Maybe Integer
- shortTermDebt :: Maybe Integer
- otherShortTermLiabilities :: Maybe Integer
- longTermDebt :: Maybe Integer
- pensionLiabilities :: Maybe Integer
- pensions :: Maybe Integer
- otherPostRetirementBenefits :: Maybe Integer
- otherLongTermLiabilities :: Maybe Integer
- fundsForFutureAppropriations :: Maybe Integer
- totalLiabilities :: Maybe Integer
- preferredEquity :: Maybe Integer
- policyholdersEquity :: Maybe Integer
- shareCapitalAndAdditionalPaidInCapital :: Maybe Integer
- commonStock :: Maybe Integer
- additionalPaidInCapital :: Maybe Integer
- otherShareCapital :: Maybe Integer
- treasuryStock :: Maybe Integer
- retainedEarnings :: Maybe Integer
- otherEquity :: Maybe Integer
- equityBeforeMinorityInterest :: Maybe Integer
- minorityInterest :: Maybe Integer
- totalEquity :: Maybe Integer
- totalLiabilitiesAndEquity :: Maybe Integer
- data GeneralProfitAndLossRow = GeneralProfitAndLossRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- revenue :: Maybe Integer
- salesAndServicesRevenue :: Maybe Integer
- financingRevenue :: Maybe Integer
- otherRevenue :: Maybe Integer
- costOfRevenue :: Maybe Integer
- costOfGoodsAndServices :: Maybe Integer
- costOfFinancingRevenue :: Maybe Integer
- costOfOtherRevenue :: Maybe Integer
- grossProfit :: Maybe Integer
- otherOperatingIncome :: Maybe Integer
- operatingExpenses :: Maybe Integer
- sellingGeneralAndAdministrative :: Maybe Integer
- sellingAndMarketing :: Maybe Integer
- generalAndAdministrative :: Maybe Integer
- researchAndDevelopment :: Maybe Integer
- depreciationAndAmortization :: Maybe Integer
- provisionForDoubtfulAccounts :: Maybe Integer
- otherOperatingExpenses :: Maybe Integer
- operatingIncomeLoss :: Maybe Integer
- nonOperatingIncomeLoss :: Maybe Integer
- interestExpenseNet :: Maybe Integer
- interestExpense :: Maybe Integer
- interestIncome :: Maybe Integer
- otherInvestmentIncomeLoss :: Maybe Integer
- foreignExchangeGainLoss :: Maybe Integer
- incomeLossFromAffiliates :: Maybe Integer
- otherNonOperatingIncomeLoss :: Maybe Integer
- pretaxIncomeLossAdj :: Maybe Integer
- abnormalGainsLosses :: Maybe Integer
- acquiredInProcessRAndD :: Maybe Integer
- mergerAndAcquisitionExpense :: Maybe Integer
- abnormalDerivatives :: Maybe Integer
- disposalOfAssets :: Maybe Integer
- earlyExtinguishmentOfDebt :: Maybe Integer
- assetWriteDown :: Maybe Integer
- impairmentOfGoodwillAndIntangibles :: Maybe Integer
- saleOfBusiness :: Maybe Integer
- legalSettlement :: Maybe Integer
- restructuringCharges :: Maybe Integer
- saleOfInvestmentsAndUnrealizedInvestments :: Maybe Integer
- insuranceSettlement :: Maybe Integer
- otherAbnormalItems :: Maybe Integer
- pretaxIncomeLoss :: Maybe Integer
- incomeTaxExpenseBenefitNet :: Maybe Integer
- currentIncomeTax :: Maybe Integer
- deferredIncomeTax :: Maybe Integer
- taxAllowanceCredit :: Maybe Integer
- incomeLossFromAffiliatesNetOfTaxes :: Maybe Integer
- incomeLossFromContinuingOperations :: Maybe Integer
- netExtraordinaryGainsLosses :: Maybe Integer
- discontinuedOperations :: Maybe Integer
- accountingChargesAndOther :: Maybe Integer
- incomeLossInclMinorityInterest :: Maybe Integer
- minorityInterest :: Maybe Integer
- netIncome :: Maybe Integer
- preferredDividends :: Maybe Integer
- otherAdjustments :: Maybe Integer
- netIncomeCommon :: Maybe Integer
- data BankProfitAndLossRow = BankProfitAndLossRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- revenue :: Maybe Integer
- netInterestIncome :: Maybe Integer
- totalInterestIncome :: Maybe Integer
- totalInterestExpense :: Maybe Integer
- totalNonInterestIncome :: Maybe Integer
- tradingAccountProfitsLosses :: Maybe Integer
- investmentIncomeLoss :: Maybe Integer
- saleOfLoanIncomeLoss :: Maybe Integer
- commissionsAndFeesEarned :: Maybe Integer
- netOTTILossesRecognisedInEarnings :: Maybe Integer
- otherNonInterestIncome :: Maybe Integer
- provisionForLoanLosses :: Maybe Integer
- netRevenueAfterProvisions :: Maybe Integer
- totalNonInterestExpense :: Maybe Integer
- commissionsAndFeesPaid :: Maybe Integer
- otherOperatingExpenses :: Maybe Integer
- operatingIncomeLoss :: Maybe Integer
- nonOperatingIncomeLoss :: Maybe Integer
- incomeLossFromAffiliates :: Maybe Integer
- otherNonOperatingIncomeLoss :: Maybe Integer
- pretaxIncomeLossAdj :: Maybe Integer
- abnormalGainsLosses :: Maybe Integer
- debtValuationAdjustment :: Maybe Integer
- creditValuationAdjustment :: Maybe Integer
- mergerAndAcquisitionExpense :: Maybe Integer
- disposalOfAssets :: Maybe Integer
- earlyExtinguishmentOfDebt :: Maybe Integer
- assetWriteDown :: Maybe Integer
- impairmentOfGoodwillAndIntangibles :: Maybe Integer
- saleOfBusiness :: Maybe Integer
- legalSettlement :: Maybe Integer
- restructuringCharges :: Maybe Integer
- otherAbnormalItems :: Maybe Integer
- pretaxIncomeLoss :: Maybe Integer
- incomeTaxExpenseBenefitNet :: Maybe Integer
- currentIncomeTax :: Maybe Integer
- deferredIncomeTax :: Maybe Integer
- taxAllowanceCredit :: Maybe Integer
- incomeLossFromAffiliatesNetOfTaxes :: Maybe Integer
- incomeLossFromContinuingOperations :: Maybe Integer
- netExtraordinaryGainsLosses :: Maybe Integer
- discontinuedOperations :: Maybe Integer
- accountingChargesAndOther :: Maybe Integer
- incomeLossInclMinorityInterest :: Maybe Integer
- minorityInterest :: Maybe Integer
- netIncome :: Maybe Integer
- preferredDividends :: Maybe Integer
- otherAdjustments :: Maybe Integer
- netIncomeCommon :: Maybe Integer
- data InsuranceProfitAndLossRow = InsuranceProfitAndLossRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- revenue :: Maybe Integer
- netPremiumsEarned :: Maybe Integer
- investmentIncomeLoss :: Maybe Integer
- incomeFromRealEstate :: Maybe Integer
- otherOperatingIncome :: Maybe Integer
- policyChargesAndFees :: Maybe Integer
- totalRealizedInvestmentGains :: Maybe Integer
- totalOTTIRealized :: Maybe Integer
- otherRealizedInvestmentGains :: Maybe Integer
- otherIncome :: Maybe Integer
- totalClaimsAndLosses :: Maybe Integer
- claimsAndLosses :: Maybe Integer
- longTermCharges :: Maybe Integer
- otherClaimsAndLosses :: Maybe Integer
- underwritingExpenseAndAcquisitionCost :: Maybe Integer
- otherOperatingExpenses :: Maybe Integer
- operatingIncomeLoss :: Maybe Integer
- nonOperatingIncomeLoss :: Maybe Integer
- incomeLossFromAffiliates :: Maybe Integer
- interestExpenseNet :: Maybe Integer
- otherNonOperatingIncomeLoss :: Maybe Integer
- pretaxIncomeLossAdj :: Maybe Integer
- abnormalGainsLosses :: Maybe Integer
- mergerAndAcquisitionExpense :: Maybe Integer
- abnormalDerivatives :: Maybe Integer
- disposalOfAssets :: Maybe Integer
- earlyExtinguishmentOfDebt :: Maybe Integer
- assetWriteDown :: Maybe Integer
- impairmentOfGoodwillAndIntangibles :: Maybe Integer
- saleOfBusiness :: Maybe Integer
- legalSettlement :: Maybe Integer
- restructuringCharges :: Maybe Integer
- netInvestmentLosses :: Maybe Integer
- foreignExchange :: Maybe Integer
- otherAbnormalItems :: Maybe Integer
- pretaxIncomeLoss :: Maybe Integer
- incomeTaxExpenseBenefitNet :: Maybe Integer
- currentIncomeTax :: Maybe Integer
- deferredIncomeTax :: Maybe Integer
- taxAllowanceCredit :: Maybe Integer
- incomeLossFromAffiliatesNetOfTaxes :: Maybe Integer
- incomeLossFromContinuingOperations :: Maybe Integer
- netExtraordinaryGainsLosses :: Maybe Integer
- discontinuedOperations :: Maybe Integer
- accountingChargesAndOther :: Maybe Integer
- incomeLossInclMinorityInterest :: Maybe Integer
- minorityInterest :: Maybe Integer
- netIncome :: Maybe Integer
- preferredDividends :: Maybe Integer
- otherAdjustments :: Maybe Integer
- netIncomeCommon :: Maybe Integer
- data GeneralCashFlowRow = GeneralCashFlowRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- netIncomeStartingLine :: Maybe Integer
- netIncome :: Maybe Integer
- netIncomeFromDiscontinuedOperations :: Maybe Integer
- otherAdjustmensts :: Maybe Integer
- depreciationAndAmortizatison :: Maybe Integer
- nonCashItems :: Maybe Integer
- stockBasedCompensatison :: Maybe Integer
- deferredIncomeTaxes :: Maybe Integer
- otherNonCashAdjustments :: Maybe Integer
- changeInWorkingCapital :: Maybe Integer
- changeInAccountsReceivable :: Maybe Integer
- changeInInventories :: Maybe Integer
- changeInAccountsPayable :: Maybe Integer
- changeInOther :: Maybe Integer
- netCashFromDiscontinuedOperationsOperating :: Maybe Integer
- netCashFromOpesratingActivities :: Maybe Integer
- changeInFixedAssetsAndIntsangibles :: Maybe Integer
- dispositionOfFixedAssetssAndIntangibles :: Maybe Integer
- dispositionOfFixedAsssets :: Maybe Integer
- dispositionOfIntangibleAssets :: Maybe Integer
- acquisitionOfFixedAssetsAndIntangibles :: Maybe Integer
- purchaseOfFixedAssets :: Maybe Integer
- acquisitionOfIntangibleAssets :: Maybe Integer
- otherChangeInFixedAssetsAndIntangibles :: Maybe Integer
- netChangeInLongTermInvestment :: Maybe Integer
- decreaseInLongTermInvestment :: Maybe Integer
- increaseInLongTermInvestment :: Maybe Integer
- netCashFromAcquisitionsAndDivestitures :: Maybe Integer
- netCashFromDivestitures :: Maybe Integer
- cashForAcquisitionOfSubsidiaries :: Maybe Integer
- cashForJointVentures :: Maybe Integer
- netCashFromOtherAcquisitions :: Maybe Integer
- otherInvestingActivities :: Maybe Integer
- netCashFromDiscontinuedOperationsInvesting :: Maybe Integer
- netCashFromInvestingActivities :: Maybe Integer
- dividendsPaid :: Maybe Integer
- cashFromRepaymentOfDebt :: Maybe Integer
- cashFromRepaymentOfShortTermDebtNet :: Maybe Integer
- cashFromRepaymentOfLongTermDebtNet :: Maybe Integer
- repaymentsOfLongTermDebt :: Maybe Integer
- cashFromLongTermDebt :: Maybe Integer
- cashFromRepurchaseOfEquity :: Maybe Integer
- increaseInCapitalStock :: Maybe Integer
- decreaseInCapitalStock :: Maybe Integer
- otherFinancingActivities :: Maybe Integer
- netCashFromDiscontinuedOperationsFinancing :: Maybe Integer
- netCashFromFinancingActivities :: Maybe Integer
- netCashBeforeDiscOperationsAndFX :: Maybe Integer
- changeInCashFromDiscOperationsAndOther :: Maybe Integer
- netCashBeforeFX :: Maybe Integer
- effectOfForeignExchangeRates :: Maybe Integer
- netChangeInCash :: Maybe Integer
- data BankCashFlowRow = BankCashFlowRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- netIncomeStartingLine :: Maybe Integer
- netIncome :: Maybe Integer
- netIncomeFromDiscontinuedOperations :: Maybe Integer
- otherAdjustments :: Maybe Integer
- depreciationAndAmortization :: Maybe Integer
- provisionForLoanLosses :: Maybe Integer
- nonCashItems :: Maybe Integer
- gainOnSaleOfSecuritiesAndLoans :: Maybe Integer
- deferredIncomeTaxes :: Maybe Integer
- stockBasedCompensation :: Maybe Integer
- otherNonCashAdjustments :: Maybe Integer
- changeInWorkingCapital :: Maybe Integer
- tradingAssetsAndLiabilities :: Maybe Integer
- netChangeOfInvestments :: Maybe Integer
- netChangeOfInterbankAssets :: Maybe Integer
- netChangeOfInterbankLiabilities :: Maybe Integer
- netChangeInOperatingLoans :: Maybe Integer
- accruedInterestReceivable :: Maybe Integer
- accruedInterestPayable :: Maybe Integer
- otherOperatingAssetsLiabilities :: Maybe Integer
- netCashFromDiscontinuedOperationsOperating :: Maybe Integer
- netCashFromOperatingActivities :: Maybe Integer
- changeInFixedAssetsAndIntangibles :: Maybe Integer
- dispositionOfFixedAssetsAndIntangibles :: Maybe Integer
- capitalExpenditures :: Maybe Integer
- netChangeInInvestments :: Maybe Integer
- decreaseInInvestments :: Maybe Integer
- decreaseInHTMInvestments :: Maybe Integer
- decreaseInAFSInvestments :: Maybe Integer
- increaseInInvestments :: Maybe Integer
- increaseInHTMInvestments :: Maybe Integer
- increaseInAFSInvestments :: Maybe Integer
- netChangeInOtherInvestments :: Maybe Integer
- netChangeInLoansAndInterbank :: Maybe Integer
- netChangeInCustomerLoans :: Maybe Integer
- netChangeInInterbankAssets :: Maybe Integer
- netChangeInOtherLoans :: Maybe Integer
- netCashFromAcquisitionsAndDivestitures :: Maybe Integer
- netCashFromDivestitures :: Maybe Integer
- cashForAcquisitionOfSubsidiaries :: Maybe Integer
- cashForJointVentures :: Maybe Integer
- netCashFromOtherAcquisitions :: Maybe Integer
- otherInvestingActivities :: Maybe Integer
- netCashFromDiscontinuedOperationsInvesting :: Maybe Integer
- netCashFromInvestingActivities :: Maybe Integer
- dividendsPaid :: Maybe Integer
- cashFromRepaymentOfDebt :: Maybe Integer
- cashFromRepaymentOfShortTermDebtNet :: Maybe Integer
- netChangeInInterbankTransfers :: Maybe Integer
- cashFromRepaymentOfLongTermDebtNet :: Maybe Integer
- repaymentsOfLongTermDebt :: Maybe Integer
- cashFromLongTermDebt :: Maybe Integer
- cashFromRepurchaseOfEquity :: Maybe Integer
- increaseInCapitalStock :: Maybe Integer
- decreaseInCapitalStock :: Maybe Integer
- netChangeInDeposits :: Maybe Integer
- otherFinancingActivities :: Maybe Integer
- netCashFromDiscontinuedOperationsFinancing :: Maybe Integer
- netCashFromFinancingActivities :: Maybe Integer
- netCashBeforeDiscOperationsAndFX :: Maybe Integer
- changeInCashFromDiscOperationsAndOther :: Maybe Integer
- netCashBeforeFX :: Maybe Integer
- effectOfForeignExchangeRates :: Maybe Integer
- netChangeInCash :: Maybe Integer
- data InsuranceCashFlowRow = InsuranceCashFlowRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: String
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- netIncomeStartingLine :: Maybe Integer
- netIncome :: Maybe Integer
- netIncomeFromDiscontinuedOperations :: Maybe Integer
- otherAdjustments :: Maybe Integer
- depreciationAndAmortization :: Maybe Integer
- nonCashItems :: Maybe Integer
- stockBasedCompensation :: Maybe Integer
- deferredIncomeTaxes :: Maybe Integer
- otherNonCashAdjustments :: Maybe Integer
- changeInWorkingCapital :: Maybe Integer
- netCashFromDiscontinuedOperationsOperating :: Maybe Integer
- netCashFromOperatingActivities :: Maybe Integer
- changeInFixedAssetsAndIntangibles :: Maybe Integer
- dispositionOfFixedAssetsAndIntangibles :: Maybe Integer
- acquisitionOfFixedAssetsAndIntangibles :: Maybe Integer
- netChangeInInvestments :: Maybe Integer
- increaseInInvestments :: Maybe Integer
- decreaseInInvestments :: Maybe Integer
- otherInvestingActivities :: Maybe Integer
- netCashFromDiscontinuedOperationsInvesting :: Maybe Integer
- netCashFromInvestingActivities :: Maybe Integer
- dividendsPaid :: Maybe Integer
- cashFromRepaymentOfDebt :: Maybe Integer
- cashFromRepaymentOfShortTermDebtNet :: Maybe Integer
- cashFromRepaymentOfLongTermDebtNet :: Maybe Integer
- repaymentsOfLongTermDebt :: Maybe Integer
- cashFromLongTermDebt :: Maybe Integer
- cashFromRepurchaseOfEquity :: Maybe Integer
- increaseInCapitalStock :: Maybe Integer
- decreaseInCapitalStock :: Maybe Integer
- changeInInsuranceReserves :: Maybe Integer
- otherFinancingActivities :: Maybe Integer
- netCashFromDiscontinuedOperationsFinancing :: Maybe Integer
- netCashFromFinancingActivities :: Maybe Integer
- netCashBeforeDiscOperationsAndFX :: Maybe Integer
- changeInCashFromDiscOperationsAndOther :: Maybe Integer
- netCashBeforeFX :: Maybe Integer
- effectOfForeignExchangeRates :: Maybe Integer
- netChangeInCash :: Maybe Integer
- data DerivedRow a = DerivedRow {
- simFinId :: Int
- ticker :: Text
- fiscalPeriod :: FiscalPeriod
- fiscalYear :: Int
- reportDate :: Day
- publishDate :: Day
- restatedDate :: Day
- source :: Text
- tTM :: Bool
- valueCheck :: Bool
- eBITDA :: Maybe a
- totalDebt :: Maybe a
- freeCashFlow :: Maybe a
- grossProfitMargin :: Maybe a
- operatingMargin :: Maybe a
- netProfitMargin :: Maybe a
- returnOnEquity :: Maybe a
- returnOnAssets :: Maybe a
- freeCashFlowToNetIncome :: Maybe a
- currentRatio :: Maybe a
- liabilitiesToEquityRatio :: Maybe a
- debtRatio :: Maybe a
- earningsPerShareBasic :: Maybe a
- earningsPerShareDiluted :: Maybe a
- salesPerShare :: Maybe a
- equityPerShare :: Maybe a
- freeCashFlowPerShare :: Maybe a
- dividendsPerShare :: Maybe a
- piotroskiFScore :: Maybe Int
- returnOnInvestedCapital :: Maybe a
- cashReturnOnInvestedCapital :: Maybe a
- dividendPayoutRatio :: Maybe a
- netDebtEBITDA :: Maybe a
- netDebtEBIT :: Maybe a
- data PricesRow a = PricesRow {}
- data RatiosRow a = RatiosRow {
- marketCap :: Integer
- priceToEarningsRatioQuarterly :: Maybe a
- priceToEarningsRatioTTM :: Maybe a
- priceToSalesRatioQuarterly :: Maybe a
- priceToSalesRatioTTM :: Maybe a
- priceToBookValueTTM :: Maybe a
- priceToFreeCashFlowQuarterly :: Maybe a
- priceToFreeCashFlowTTM :: Maybe a
- enterpriseValueTTM :: Maybe a
- eVEBITDATTM :: Maybe a
- eVSalesTTM :: Maybe a
- eVFCFTTM :: Maybe a
- bookToMarketValueTTM :: Maybe a
- operatingIncomeEVTTM :: Maybe a
- data PricesAndRatiosRow a = PricesAndRatiosRow {}
- data PricesQuery = PricesQuery {}
- data StatementQuery = StatementQuery {}
- data StockRef
- data FiscalPeriod
- data ApiError
- type ApiResult = Either ApiError
- createDefaultContext :: (MonadFail m, MonadIO m) => m SimFinContext
- fetchCompanyList :: (MonadThrow m, MonadIO m) => SimFinContext -> m (Either ApiError [CompanyListingRow])
- fetchCompanyInfo :: (MonadThrow m, MonadIO m) => SimFinContext -> NonEmpty StockRef -> m (ApiResult [CompanyInfoRow])
- fetchBalanceSheets :: (MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [IndustryBalanceSheet])
- fetchProfitsAndLosses :: (MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [IndustryProfitAndLoss])
- fetchCashFlows :: (MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [IndustryCashFlow])
- fetchDerived :: (Read a, RealFrac a, MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [DerivedRow a])
- fetchPrices :: (Read a, RealFrac a, MonadThrow m, MonadIO m) => SimFinContext -> PricesQuery -> m (ApiResult [PricesRow a])
- fetchPricesAndRatios :: (Read a, RealFrac a, MonadThrow m, MonadIO m) => SimFinContext -> PricesQuery -> m (ApiResult [PricesAndRatiosRow a])
Documentation
data SimFinContext Source #
The context needed to call every fetch* function.
data Industry general bank insurance Source #
Distinguish between different industry-specific data.
Instances
FromJSON IndustryCashFlows Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser IndustryCashFlows # parseJSONList :: Value -> Parser [IndustryCashFlows] # | |
FromJSON IndustryBalanceSheets Source # | |
Defined in SimFin.Types.BalanceSheet parseJSON :: Value -> Parser IndustryBalanceSheets # parseJSONList :: Value -> Parser [IndustryBalanceSheets] # | |
FromJSON IndustryProfitsAndLosses Source # | |
Defined in SimFin.Types.ProfitAndLoss | |
(Show general, Show bank, Show insurance) => Show (Industry general bank insurance) Source # | |
data CompanyListingRow Source #
SimFin ID and company ticker. See the SimFin docs.
Instances
Show CompanyListingRow Source # | |
Defined in SimFin.Types.CompanyListing showsPrec :: Int -> CompanyListingRow -> ShowS # show :: CompanyListingRow -> String # showList :: [CompanyListingRow] -> ShowS # | |
FromJSON CompanyListingRow Source # | |
Defined in SimFin.Types.CompanyListing parseJSON :: Value -> Parser CompanyListingRow # parseJSONList :: Value -> Parser [CompanyListingRow] # |
data CompanyInfoRow Source #
Genreal information about a company. See the SimFin docs.
CompanyInfoRow | |
|
Instances
Show CompanyInfoRow Source # | |
Defined in SimFin.Types.CompanyInfo showsPrec :: Int -> CompanyInfoRow -> ShowS # show :: CompanyInfoRow -> String # showList :: [CompanyInfoRow] -> ShowS # | |
FromJSON CompanyInfoRow Source # | |
Defined in SimFin.Types.CompanyInfo parseJSON :: Value -> Parser CompanyInfoRow # parseJSONList :: Value -> Parser [CompanyInfoRow] # |
data GeneralBalanceSheetRow Source #
Balance sheet statement for general companies.
Instances
Show GeneralBalanceSheetRow Source # | |
Defined in SimFin.Types.BalanceSheet showsPrec :: Int -> GeneralBalanceSheetRow -> ShowS # show :: GeneralBalanceSheetRow -> String # showList :: [GeneralBalanceSheetRow] -> ShowS # | |
FromJSON IndustryBalanceSheets Source # | |
Defined in SimFin.Types.BalanceSheet parseJSON :: Value -> Parser IndustryBalanceSheets # parseJSONList :: Value -> Parser [IndustryBalanceSheets] # | |
FromJSON GeneralBalanceSheetRow Source # | |
Defined in SimFin.Types.BalanceSheet |
data BankBalanceSheetRow Source #
Balance sheet statement for banks.
Instances
Show BankBalanceSheetRow Source # | |
Defined in SimFin.Types.BalanceSheet showsPrec :: Int -> BankBalanceSheetRow -> ShowS # show :: BankBalanceSheetRow -> String # showList :: [BankBalanceSheetRow] -> ShowS # | |
FromJSON IndustryBalanceSheets Source # | |
Defined in SimFin.Types.BalanceSheet parseJSON :: Value -> Parser IndustryBalanceSheets # parseJSONList :: Value -> Parser [IndustryBalanceSheets] # | |
FromJSON BankBalanceSheetRow Source # | |
Defined in SimFin.Types.BalanceSheet parseJSON :: Value -> Parser BankBalanceSheetRow # parseJSONList :: Value -> Parser [BankBalanceSheetRow] # |
data InsuranceBalanceSheetRow Source #
Balance sheet statement for insurance companies.
Instances
Show InsuranceBalanceSheetRow Source # | |
Defined in SimFin.Types.BalanceSheet showsPrec :: Int -> InsuranceBalanceSheetRow -> ShowS # show :: InsuranceBalanceSheetRow -> String # showList :: [InsuranceBalanceSheetRow] -> ShowS # | |
FromJSON IndustryBalanceSheets Source # | |
Defined in SimFin.Types.BalanceSheet parseJSON :: Value -> Parser IndustryBalanceSheets # parseJSONList :: Value -> Parser [IndustryBalanceSheets] # | |
FromJSON InsuranceBalanceSheetRow Source # | |
Defined in SimFin.Types.BalanceSheet |
data GeneralProfitAndLossRow Source #
Cash flow statement for general companies.
Instances
Show GeneralProfitAndLossRow Source # | |
Defined in SimFin.Types.ProfitAndLoss showsPrec :: Int -> GeneralProfitAndLossRow -> ShowS # show :: GeneralProfitAndLossRow -> String # showList :: [GeneralProfitAndLossRow] -> ShowS # | |
FromJSON IndustryProfitsAndLosses Source # | |
Defined in SimFin.Types.ProfitAndLoss | |
FromJSON GeneralProfitAndLossRow Source # | |
Defined in SimFin.Types.ProfitAndLoss |
data BankProfitAndLossRow Source #
Cash flow statement for banks.
Instances
Show BankProfitAndLossRow Source # | |
Defined in SimFin.Types.ProfitAndLoss showsPrec :: Int -> BankProfitAndLossRow -> ShowS # show :: BankProfitAndLossRow -> String # showList :: [BankProfitAndLossRow] -> ShowS # | |
FromJSON IndustryProfitsAndLosses Source # | |
Defined in SimFin.Types.ProfitAndLoss | |
FromJSON BankProfitAndLossRow Source # | |
Defined in SimFin.Types.ProfitAndLoss parseJSON :: Value -> Parser BankProfitAndLossRow # parseJSONList :: Value -> Parser [BankProfitAndLossRow] # |
data InsuranceProfitAndLossRow Source #
Cash flow statement for insurance companies.
Instances
Show InsuranceProfitAndLossRow Source # | |
Defined in SimFin.Types.ProfitAndLoss showsPrec :: Int -> InsuranceProfitAndLossRow -> ShowS # show :: InsuranceProfitAndLossRow -> String # showList :: [InsuranceProfitAndLossRow] -> ShowS # | |
FromJSON IndustryProfitsAndLosses Source # | |
Defined in SimFin.Types.ProfitAndLoss | |
FromJSON InsuranceProfitAndLossRow Source # | |
Defined in SimFin.Types.ProfitAndLoss |
data GeneralCashFlowRow Source #
Cash flow statement for general companies.
Instances
Show GeneralCashFlowRow Source # | |
Defined in SimFin.Types.CashFlow showsPrec :: Int -> GeneralCashFlowRow -> ShowS # show :: GeneralCashFlowRow -> String # showList :: [GeneralCashFlowRow] -> ShowS # | |
FromJSON IndustryCashFlows Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser IndustryCashFlows # parseJSONList :: Value -> Parser [IndustryCashFlows] # | |
FromJSON GeneralCashFlowRow Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser GeneralCashFlowRow # parseJSONList :: Value -> Parser [GeneralCashFlowRow] # |
data BankCashFlowRow Source #
Cash flow statement for banks.
Instances
Show BankCashFlowRow Source # | |
Defined in SimFin.Types.CashFlow showsPrec :: Int -> BankCashFlowRow -> ShowS # show :: BankCashFlowRow -> String # showList :: [BankCashFlowRow] -> ShowS # | |
FromJSON IndustryCashFlows Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser IndustryCashFlows # parseJSONList :: Value -> Parser [IndustryCashFlows] # | |
FromJSON BankCashFlowRow Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser BankCashFlowRow # parseJSONList :: Value -> Parser [BankCashFlowRow] # |
data InsuranceCashFlowRow Source #
Cash flow statement for Insurance companies.
Instances
Show InsuranceCashFlowRow Source # | |
Defined in SimFin.Types.CashFlow showsPrec :: Int -> InsuranceCashFlowRow -> ShowS # show :: InsuranceCashFlowRow -> String # showList :: [InsuranceCashFlowRow] -> ShowS # | |
FromJSON IndustryCashFlows Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser IndustryCashFlows # parseJSONList :: Value -> Parser [IndustryCashFlows] # | |
FromJSON InsuranceCashFlowRow Source # | |
Defined in SimFin.Types.CashFlow parseJSON :: Value -> Parser InsuranceCashFlowRow # parseJSONList :: Value -> Parser [InsuranceCashFlowRow] # |
data DerivedRow a Source #
Cash flow statement for general companies.
DerivedRow | |
|
Instances
Functor DerivedRow Source # | |
Defined in SimFin.Types.Derived fmap :: (a -> b) -> DerivedRow a -> DerivedRow b # (<$) :: a -> DerivedRow b -> DerivedRow a # | |
Show a => Show (DerivedRow a) Source # | |
Defined in SimFin.Types.Derived showsPrec :: Int -> DerivedRow a -> ShowS # show :: DerivedRow a -> String # showList :: [DerivedRow a] -> ShowS # | |
(Read a, RealFrac a) => FromJSON (DerivedRow a) Source # | |
Defined in SimFin.Types.Derived parseJSON :: Value -> Parser (DerivedRow a) # parseJSONList :: Value -> Parser [DerivedRow a] # |
Prices of a company over a single day.
Record modelling the extra data returned by calling the share price API endpoint with the "&ratios" query parameter. See the SimFin docs.
RatiosRow | |
|
data PricesAndRatiosRow a Source #
Represents a company's prices and ratios.
Instances
Functor PricesAndRatiosRow Source # | |
Defined in SimFin.Types.PricesAndRatios fmap :: (a -> b) -> PricesAndRatiosRow a -> PricesAndRatiosRow b # (<$) :: a -> PricesAndRatiosRow b -> PricesAndRatiosRow a # | |
Show a => Show (PricesAndRatiosRow a) Source # | |
Defined in SimFin.Types.PricesAndRatios showsPrec :: Int -> PricesAndRatiosRow a -> ShowS # show :: PricesAndRatiosRow a -> String # showList :: [PricesAndRatiosRow a] -> ShowS # | |
(Read a, RealFrac a) => FromJSON (PricesAndRatiosRow a) Source # | |
Defined in SimFin.Types.PricesAndRatios parseJSON :: Value -> Parser (PricesAndRatiosRow a) # parseJSONList :: Value -> Parser [PricesAndRatiosRow a] # |
data PricesQuery Source #
This represents all options the prices endpoint supports.
Some of these parameters are only available to SimFin+ users.
For free users, please use PricesQueryFree
.
Instances
Show PricesQuery Source # | |
Defined in SimFin.Types.PricesQuery showsPrec :: Int -> PricesQuery -> ShowS # show :: PricesQuery -> String # showList :: [PricesQuery] -> ShowS # |
data StatementQuery Source #
This represents all options the statement endpoint supports, minus the "statement"
parameter itself, which is set by simply calling the right function.
Some of these parameters are only available to SimFin+ users.
For free users, please use StatementQueryFree
.
If you provide a zero-length list for any field, the query parameter will be omitted,
and the API will try to return all relevant available statements.
Instances
Show StatementQuery Source # | |
Defined in SimFin.Types.StatementQuery showsPrec :: Int -> StatementQuery -> ShowS # show :: StatementQuery -> String # showList :: [StatementQuery] -> ShowS # |
A stock ref is a SimSin ID or a ticker.
data FiscalPeriod Source #
A fiscal period as understood by the SimFin API.
Instances
Eq FiscalPeriod Source # | |
Defined in SimFin.Types.FiscalPeriod (==) :: FiscalPeriod -> FiscalPeriod -> Bool # (/=) :: FiscalPeriod -> FiscalPeriod -> Bool # | |
Show FiscalPeriod Source # | |
Defined in SimFin.Types.FiscalPeriod showsPrec :: Int -> FiscalPeriod -> ShowS # show :: FiscalPeriod -> String # showList :: [FiscalPeriod] -> ShowS # | |
FromJSON FiscalPeriod Source # | |
Defined in SimFin.Types.FiscalPeriod parseJSON :: Value -> Parser FiscalPeriod # parseJSONList :: Value -> Parser [FiscalPeriod] # |
Represents all the types of error the server returns, and that we can encounter on our side.
DecodeError ByteString String | Can't turn ByteString into JSON |
ParseError Value String | Can't turn JSON into result type |
Other Text | Server returned '{"error": "..."}' along with a non-200 status code. This could in theory be parsed into machine-readable format, with variants such as `InvalidApiKey | RateLimited | ...`, but the API doesn't guarantee error message stability. |
type ApiResult = Either ApiError Source #
The result of calling fetch* is either an error or a successful result.
createDefaultContext :: (MonadFail m, MonadIO m) => m SimFinContext Source #
Try to make a new http-client manager, and parse your api key from
apiKeyEnvVariable
.
fetchCompanyList :: (MonadThrow m, MonadIO m) => SimFinContext -> m (Either ApiError [CompanyListingRow]) Source #
Fetch a list of company tickers and SimFin ids. This is the only endpoint common to free and paid customers.
fetchCompanyInfo :: (MonadThrow m, MonadIO m) => SimFinContext -> NonEmpty StockRef -> m (ApiResult [CompanyInfoRow]) Source #
Fetch general company information. See the SimFin docs.
fetchBalanceSheets :: (MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [IndustryBalanceSheet]) Source #
Fetch a company's balance sheet statements. See the SimFin docs.
fetchProfitsAndLosses :: (MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [IndustryProfitAndLoss]) Source #
Fetch a company's profit and loss statements. See the SimFin docs.
fetchCashFlows :: (MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [IndustryCashFlow]) Source #
Fetch a company's cash flow statements. See the SimFin docs.
fetchDerived :: (Read a, RealFrac a, MonadThrow m, MonadIO m) => SimFinContext -> StatementQuery -> m (ApiResult [DerivedRow a]) Source #
Fetch a company's derived figures. See the SimFin docs.
fetchPrices :: (Read a, RealFrac a, MonadThrow m, MonadIO m) => SimFinContext -> PricesQuery -> m (ApiResult [PricesRow a]) Source #
Fetch a company's historical share prices. See the SimFin docs.
fetchPricesAndRatios :: (Read a, RealFrac a, MonadThrow m, MonadIO m) => SimFinContext -> PricesQuery -> m (ApiResult [PricesAndRatiosRow a]) Source #
Fetch a company's historical share prices, along with key ratios. See the SimFin docs.