Skip to main content

Fundamental Analysis

The Fundamental Analysis menu is a set of tools for analyzing the overall health of a company and estimating its intrinsic value. Functions within this menu provide company profiles, financial statements, historical distributions, financial ratios, and analyst estimates. Revenue of companies with a long public history are easier to forecast, and the consensus of many analysts will indicate the level of confidence in future expectations. In addition to these features, there are tools in the stocks/ca menu for comparing fundamentals across groups of companies.

Usage

Enter the submenu from the /stocks/ menu with fa, or from the absolute path:

/stocks/fa

Screenshot 2023-11-01 at 10 03 40 AM

note
  • All functions in this menu can add a ticker argument with the -t flag. This overrides the loaded symbol.

  • Data returned from each source will be different for the same command. Use the --source argument to change the data provider for a command with more than one available.

Overview

The overview command provides general metadata and key metrics.

/stocks/fa/overview -t aapl --source YahooFinance
Value
CurrencyUSD
Day high172.36000061035156
Day low170.1300048828125
ExchangeNMS
Fifty day average176.71860076904298
Last price172.35000610351562
Last volume23223500
Market cap2694554388210.7812
Open171.0
Previous close170.38
Quote typeEQUITY
Regular market previous close170.77000427246094
Shares15634199552
Ten day average volume56025390
Three month average volume58964427
TimezoneAmerica/New_York
Two hundred day average170.8950003814697
Year change0.177480560641351
Year high198.22999572753906
Year low124.16999816894531

An example of the difference between sources:

/stocks/fa/overview -t aapl --source AlphaVantage
SymbolAAPL
AssetTypeCommon Stock
NameApple Inc
DescriptionApple Inc. is an American multinational technology company that specializes in consumer electronics, computer software, and online services. Apple is the world's largest technology company by revenue (totalling $274.5 billion in 2020) and, since January 2021, the world's most valuable company. As of 2021, Apple is the world's fourth-largest PC vendor by unit sales, and fourth-largest smartphone manufacturer. It is one of the Big Five American information technology companies, along with Amazon, Google, Microsoft, and Facebook.
CIK320193
ExchangeNASDAQ
CurrencyUSD
CountryUSA
SectorTECHNOLOGY
IndustryELECTRONIC COMPUTERS
AddressONE INFINITE LOOP, CUPERTINO, CA, US
FiscalYearEndSeptember
LatestQuarter2023-06-30
MarketCapitalization2669852230000
EBITDA123957002000
PERatio28.65
PEGRatio2.75
BookValue3.852
DividendPerShare0.93
DividendYield0.0056
EPS5.96
RevenuePerShareTTM24.22
ProfitMargin0.247
OperatingMarginTTM0.281
ReturnOnAssetsTTM0.209
ReturnOnEquityTTM1.601
RevenueTTM383932989000
GrossProfitTTM170782000000
DilutedEPSTTM5.96
QuarterlyEarningsGrowthYOY0.05
QuarterlyRevenueGrowthYOY-0.014
AnalystTargetPrice187.73
TrailingPE28.65
ForwardPE28.66
PriceToSalesRatioTTM5.51
PriceToBookRatio44.63
EVToRevenue5.92
EVToEBITDA23.52
Beta1.308
52WeekHigh197.96
52WeekLow123.64
50DayMovingAverage176.72
200DayMovingAverage170.9
SharesOutstanding15634200000
DividendDate2023-08-17
ExDividendDate2023-08-11

Analysis

The analysis command reads SEC filings with NLP and extracts the most important statements. Source: https://eclect.us/

Screenshot 2023-11-01 at 10 20 44 AM

MKTCAP

The mktcap command will display the historical market cap of the company. When the --source is FinancialModelingPrep, the enterprise value can be chosen as the target metric.

/stocks/fa/mktcap -t aapl --source FinancialModelingPrep ---method enterprise_value --quarter

Screenshot 2023-11-01 at 10 29 30 AM

Earnings

The earnings command compares reported EPS to estimated for each period.

/stocks/fa/earnings -t aapl --quarter

Screenshot 2023-11-01 at 10 59 35 AM

EPSFC

epsfc is the forward consensus of EPS estimates.

/stocks/fa/epsfc -t aapl
fiscalyearconsensus_meanchange %analystsactualconsensus_lowconsensus_high
20226.108098.87861416.115.966.4
20236.07227-0.6175124305.826.53
20246.533227.591074305.67.1
20257.110548.836681906.097.98
20268.1214.1967207.189.06
20279.0811.8227208.0310.13
20288.96-1.32159108.968.96
20299.9611.1607109.969.96
203010.9910.34141010.9910.99
203112.1410.46411012.1412.14
203213.4410.70841013.4413.44

Ratios

The ratios command returns calculated financial ratios, by year or quarter. To get quarterly data, apply the --quarter flag. Use the --limit argument to return more results.

/stocks/fa/ratios -t aapl

Screenshot 2023-11-01 at 10 54 48 AM

DCF

The dcf function will attempt to generate a discounted cash flow statement as an Excel file. See the optional arguments that can be applied to the command by adding -h to the syntax.

/stocks/fa/dcf -h

The available parameters are:

  -t TICKER, --ticker TICKER
Ticker to analyze (default: None)
-a, --audit Generates a tie-out for financial statement information pulled from online. (default: False)
--no-ratios Removes ratios from DCF. (default: True)
--no-filter Allow similar companies of any market cap to be shown. (default: False)
-p PREDICTION, --prediction PREDICTION
Number of years to predict before using terminal value. (default: 10)
-s SIMILAR, --similar SIMILAR
Number of similar companies to generate ratios for. (default: 0)
-b BETA, --beta BETA The beta you'd like to use for the calculation. (default: 1)
-g, --growth Whether to replace a linear regression estimate with a growth estimate. (default: False)
-h, --help show this help message (default: False)

Screenshot 2023-11-01 at 11 15 06 AM