Market Cap API: Historical P/E, P/B & Valuation

<- All Datasets

Available Datasets

Historical P/E, P/B & Market Cap

Daily market cap and valuation multiples (P/E, P/B, P/S) – up to 35 years back, adjusted for splits and currency effects.

Was the stock cheaper before? Historical market cap and multiples without merging price and fundamental data yourself. Default: daily market cap; optionally historical P/E, P/B, P/S and more.

How valuation series are built

Calculated daily from closing price, share count and fundamental data. Splits and currencies are taken into account.

One call consumes 2 request units per ticker.

Example document: https://api.leeway.tech/api/v1/public/historicalquotes/marketcap/SAP.XETRA?valuation=pe

curl -s 'https://api.leeway.tech/api/v1/public/historicalquotes/marketcap/SAP.XETRA?valuation=pe&apitoken=YOUR_TOKEN'

Ready for the Best API Experience?

Start today with flexible API access for your projects. The Leeway API is ready when you are.

Market Cap & Valuation Fields

Daily values for market cap and valuation multiples. For the complete list visit the API Glossary.

Market Cap & Valuation Multiples

marketCap
Default response: daily market-cap history as OHLC-style bars.
valuation
Query param: pe, pb, ps, pc, liab or all for daily OHLC of that multiple.
pe
Price/Earnings (TTM net income).
pb
Price/Book (equity).
ps
Price/Sales (TTM revenue).
pc
Price/Cash Flow (TTM operating cash flow).
liab
Price/Total Liabilities.
o,h,l,c
Open, high, low, close of market cap or multiple for each trading day.
date
Trading date. Format: YYYY-MM-DD.

Frequently Asked Questions

What does the endpoint return by default?+
Daily market-cap history in OHLC-style bars. With valuation=pe|pb|ps|pc|liab you get that multiple as daily OHLC; valuation=all returns all five multiples.
How far back does the history go?+
Up to ~35 years where data exists – rebuilt from quotes, fundamentals, splits, outstanding shares and FX conversion (e.g. GBX, ILA).
How are request units counted?+
Market cap and valuation multiples cost 2 request units per ticker.

Ready for the Best API Experience?

Start today with flexible API access for your projects. The Leeway API is ready when you are.

© Leeway
PWP Leeway UG (haftungsbeschränkt)
Leeway Icon