Get Ratios

The Gist

  • These functions can be used to get any financial ratios you want

  • All syntax is case insensitive

  • All data can be requested as a chart by typing "chart" at the end of a command

  • All data can be requested as an excel file by typing "excel" at the end of a command

Function
Descriptions

$PEratio <tickers>

Gets the price to earnings ratio

$PSratio <tickers>

Gets the price to sales ratio

$PGPratio <tickers>

Gets the price to gross profit ratio

$POCF <tickers>

Gets the price to operating cash flow ratio

$PFCFratio <tickers>

Gets the price to free cash flow ratio

$PBratio <tickers>

Gets the price to book value

$ROE <tickers>

Gets the return on equity

$DEratio <tickers>

Gets the debt to equity ratio

$currentRatio <tickers>

Gets the current ratio

$sectorPE <exchange>

Gets the average price to earnings ratio by sector for a specific exchange

$proportion <numerator> "/" <denominator> ":" <tickers> <"quarterly" or leave blank>

Gets the numerator as a percent of the denominator

$ratio <numerator> "/" <denominator> ":" <tickers> <"quarterly" or leave blank>

Gets the numerator divided by the denominator

$PEratio Function

Gets the Price to earnings ratio, formula is (Market Cap / Net Income)

$PEratio sq tsla pins googl

$PSratio Function

Gets the Price to sales ratio, formula is (Market Cap / Revenue)

$PSratio ddog net crwd twlo

$PGPratio Function

Gets the Price to gross profit ratio, formula is (Market Cap / Gross Profit)

$PGPratio sq tsla pins googl

$POCFratio Function

Gets the Price to operating cash flow ratio, formula is (Market Cap / Operating cash flow)

$POCFratio sq tsla pins googl

$PFCFratio Function

Gets the Price to free cash flow ratio, formula is (Market Cap / Free cash flow)

$PFCFratio msft tsla pins googl

$PBratio Function

Gets the Price to book ratio, formula is (Market Cap / Equity)

$PBratio afcg ally dfs jpm gs

$ROE Function

Gets the return on equity, formula is (Net Income / Equity) * 100

$ROE ally gs jpm

$DEratio Function

Gets the debt to equity ratio, formula is (Long term debt/ Equity)

$DEratio hd dis nke pypl

$currentRatio Function

Gets the current ratio, formula is (Current assets / Current Liabilities)

$currentRatio aal mcd hd dis cost

$sectorPE Function

Gets the average price to earnings ratio by sector for a specific exchange

Currently the only supported exchanges are NYSE and NASDAQ, you can use "ALL" as an exchange to get the average between both the NASDAQ and NYSE.

$sectorPE nyse

$proportion Function

Gets the proportion of one metric to another

Quarterly means that the proportion is calculated using data from the most recent quarter, otherwise the proportion is calculated based on the last 12 months.

$proportion Dividends / Free Cash Flow: lmt mcd aapl

$ratio Function

Gets the ratio of one metric to another (gives data as a %)

Quarterly means that the proportion is calculated using data from the most recent quarter, otherwise the proportion is calculated based on the last 12 months.

$ratio Operating Cash Flow/ Net Income: lmt mcd aapl

Last updated