Field reference / fundamentals
fundamentals_pe_ratio
Trailing P/E on the row date: the close (in US dollars at the date's exchange rate) divided by diluted EPS summed over the trailing twelve months of reported periods visible by the date (four quarters, or two halves for semi-annual filers; SEC filings first, EPS updated at the earnings-release 8-K). Null on a trailing loss or zero earnings (fundamentals_pe_zone then reads negative), on an implausible value, or when an input is missing. Weekly rows use the week's last session. Stocks only
| Level | Per stock, ETF and coin, one value per date |
| Type | number |
| Can be null | Yes |
| Category | fundamentals |
| Returned by | /v1/history, /v1/search |
Getting it
Its history for one ticker:
curl -G "https://api.tickerdb.com/v1/history" \
--data-urlencode 'tickers=AAPL' \
--data-urlencode 'fields=fundamentals_pe_ratio' \
--data-urlencode 'start=2025-01-01' \
-H "Authorization: Bearer YOUR_API_KEY"
Stocks matching it today:
curl -G "https://api.tickerdb.com/v1/search" \
--data-urlencode 'filters=[{"field":"fundamentals_pe_ratio","op":"gte","value":0}]' \
--data-urlencode 'fields=["ticker","fundamentals_pe_ratio"]' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.