POST/shorts.v1alpha1.StockService/GetStockFundamentals

GetStockFundamentals

Per-period reported fundamentals (revenue, net income, EPS, cash flow, shares) and year-on-year growth for a stock. Every value carries a has_* flag: a missing figure is absent, never zero.

Parameters

Connect-Protocol-VersionheaderRequired
number [1]

Define the version of the Connect protocol

Connect-Timeout-Msheader
number

Define the timeout, in ms

Request Body

application/json
object

Request for GetStockFundamentals.

limitinteger <int32>

Max periods, newest first (default 12, max 40). (proto int32)

periodTypestring

Optional: "annual" | "half" | "quarter" (balance-sheet snapshots) | "ttm". Empty returns every type. (proto string)

stockCodestring

ASX code, e.g. "BHP". (proto string)

Responses

200Success
application/json
object

Response for GetStockFundamentals.

coverageobject

(proto shorts.v1alpha1.FundamentalsCoverage)

lastAttemptAtstring

RFC 3339. (proto string)

lastSuccessAtstring

RFC 3339. (proto string)

statusstring

"covered" (rows held), "empty" (our providers returned nothing), "pending" (not attempted yet) or "failed" (the last attempt errored). Empty when unknown. (proto string)

growthobject

(proto shorts.v1alpha1.FundamentalsGrowth)

basisPeriodTypestring

Series the EPS growth was computed on: "half", "ttm" or "annual". (proto string)

epsBasisSourcestring

(proto string)

epsHalfYoyPctnumber <double>

(proto double)

epsTtmnumber <double>

(proto double)

epsYoyPctnumber <double>

(proto double)

epsYoyPriorPctnumber <double>

(proto double)

fetchedAtstring

RFC 3339, newest fetch of the growth inputs. (proto string)

halfLatestPeriodEndstring

YYYY-MM-DD of the latest half-year row; empty when none. (proto string)

hasEpsHalfYoyboolean

(proto bool)

hasEpsTtmboolean

(proto bool)

hasEpsYoyboolean

(proto bool)

hasEpsYoyPriorboolean

(proto bool)

hasNetIncomeTtmboolean

(proto bool)

hasRevenueHalfYoyboolean

(proto bool)

hasRevenueTtmboolean

(proto bool)

hasRevenueYoyboolean

(proto bool)

hasRevenueYoyPriorboolean

(proto bool)

latestPeriodEndstring

YYYY-MM-DD of the latest period in that series. (proto string)

netIncomePositiveboolean

Latest annual net income above zero. (proto bool)

netIncomeTtmnumber <double>

(proto double)

periodsAvailableinteger <int32>

(proto int32)

revenueBasisPeriodTypestring

Series the revenue growth was computed on: "half" (latest half-year from a company filing vs the same half a year earlier, used when it is newer than the latest annual), "ttm" (the latest trailing twelve months vs twelve months earlier, used when it is newer than the latest annual) or "annual". Empty when unknown. (proto string)

revenueBasisSourcestring

"vendor" or "filing": where the rows behind each growth figure came from. "filing" when either side of the pair is a figure extracted from a company filing. Empty when unknown. (proto string)

revenueHalfYoyPctnumber <double>

Latest half-year vs the same half a year earlier, from company filings, whether or not the half is the chosen basis. (proto double)

revenueLatestPeriodEndstring

YYYY-MM-DD, the pair revenue_yoy_pct compares. (proto string)

revenuePriorPeriodEndstring

(proto string)

revenueTtmnumber <double>

Latest trailing-twelve-month points. (proto double)

revenueYoyPctnumber <double>

Revenue growth on revenue_basis_period_type vs the same series a year earlier. (proto double)

revenueYoyPriorPctnumber <double>

The same growth one period earlier, for acceleration. (proto double)

hasGrowthboolean

False when no growth row exists yet. (proto bool)

hasLatestFilingboolean

(proto bool)

hasQualityboolean

False when no ratio row exists yet. (proto bool)

latestFilingobject

(proto shorts.v1alpha1.LatestFilingSummary)

digeststring

Short summary of the filing. (proto string)

digestConfidencenumber <double>

0-1. (proto double)

periodEndstring

YYYY-MM-DD, the period the filing reports. (proto string)

periodTypestring

"annual" | "half". (proto string)

reportDatestring

YYYY-MM-DD. (proto string)

reportTitlestring

(proto string)

reportUrlstring

(proto string)

periodsarray

Newest first. (proto shorts.v1alpha1.FundamentalsPeriod)

Array Items:
qualityobject

(proto shorts.v1alpha1.FundamentalsQuality)

balanceCurrencystring

(proto string)

balanceLagMonthsinteger <int32>

Months between the balance sheet and the flow period. (proto int32)

balancePeriodEndstring

YYYY-MM-DD; empty when no aligned balance sheet. (proto string)

basisPeriodEndstring

YYYY-MM-DD. (proto string)

basisPeriodTypestring

"annual" | "ttm". (proto string)

currencystring

Reporting currency of the flow period. (proto string)

currentRationumber <double>

(proto double)

fcfConversionnumber <double>

Free cash flow / net profit (a ratio, not a percentage). (proto double)

fcfMarginPctnumber <double>

(proto double)

grossMarginPctnumber <double>

(proto double)

hasCurrentRatioboolean

(proto bool)

hasFcfConversionboolean

(proto bool)

hasFcfMarginPctboolean

(proto bool)

hasGrossMarginPctboolean

(proto bool)

hasInterestCoverboolean

(proto bool)

hasMarketCapboolean

(proto bool)

hasNetDebtboolean

(proto bool)

hasNetDebtToEbitdaboolean

(proto bool)

hasNetDebtToEquityboolean

(proto bool)

hasNetMarginPctboolean

(proto bool)

hasOperatingMarginPctboolean

(proto bool)

hasPayoutRatioPctboolean

(proto bool)

hasPeRatioboolean

(proto bool)

hasPriceToBookboolean

(proto bool)

hasRoaPctboolean

(proto bool)

hasRoePctboolean

(proto bool)

interestCovernumber <double>

Operating income / interest expense. (proto double)

isFinancialboolean

Bank, insurer or other financial. (proto bool)

isPropertyboolean

Property trust: profit and EBITDA include revaluations. (proto bool)

marketCapnumber <double>

AUD: latest close x shares on issue. (proto double)

netDebtnumber <double>

Excludes leases; negative is net cash. In balance_currency. (proto double)

netDebtToEbitdanumber <double>

Normalized EBITDA when published, else statutory. (proto double)

netDebtToEquitynumber <double>

(proto double)

netMarginPctnumber <double>

(proto double)

operatingCashFlowDerivedboolean

Operating cash flow = free cash flow minus capex. (proto bool)

operatingMarginPctnumber <double>

(proto double)

payoutRatioPctnumber <double>

Cash dividends paid / net profit. (proto double)

peEpsBasisstring

"diluted" | "basic". (proto string)

peEpsPeriodEndstring

YYYY-MM-DD of the EPS used for P/E. (proto string)

peRationumber <double>

Latest close / 12-month EPS; AUD reporters only. (proto double)

priceAsOfstring

YYYY-MM-DD of the close used. (proto string)

priceToBooknumber <double>

Market cap / equity; AUD reporters only. (proto double)

roaPctnumber <double>

Net profit / average total assets. (proto double)

roePctnumber <double>

Net profit / average equity. (proto double)

sharesAsOfstring

YYYY-MM-DD of the share count used for market cap. (proto string)

sourcestring

Source of the flow period, e.g. "yahoo-timeseries". (proto string)

valuationNotestring

Why market cap, P/E or P/B are absent: "non-aud" (statements not in AUD), "listed-unit" (the listed unit is not one ordinary share), "no-shares", "no-price"; empty when present. (proto string)

stockCodestring

(proto string)

defaultError
application/json
object

Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation

codestring [canceled, unknown, invalid_argument, deadline_exceeded, not_found, already_exists, permission_denied, resource_exhausted, failed_precondition, aborted, out_of_range, unimplemented, internal, unavailable, data_loss, unauthenticated]

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

detailsarray

A list of messages that carry the error details. There is no limit on the number of messages.

Array Items:
messagestring

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

curl -X POST "https://api.shorted.com.au/shorts.v1alpha1.StockService/GetStockFundamentals" \
  -H "Content-Type: application/json" \
  -d '{
  "limit": 0,
  "periodType": "string",
  "stockCode": "string"
}'