Field reference / market fundamentals
market_aggregate_pe_ratio
Aggregate trailing P/E of US common stocks on the row's session (weekly rows: the week's last session): total market cap / total trailing-12-month net income (losses included, USD) of companies with both, from SEC statements filed by that session's cutoff (21.5 = the market costs 21.5 times a year's earnings). A company counts once and is left out when its newest period ended over 200 days earlier or its |net income| exceeds its market cap; null with fewer than 100 companies or when total earnings are not positive.
| Level | Market-wide, one value per date |
| Type | number |
| Can be null | Yes |
| Category | market fundamentals |
| Returned by | /v1/market, /v1/search |
Getting it
Its latest value:
curl -G "https://api.tickerdb.com/v1/market" \
--data-urlencode 'fields=market_aggregate_pe_ratio' \
-H "Authorization: Bearer YOUR_API_KEY"
Its value on a date:
curl -G "https://api.tickerdb.com/v1/market" \
--data-urlencode 'date=2020-03-23' \
--data-urlencode 'fields=market_aggregate_pe_ratio' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.