Available Datasets
Market Cap & Valuation API
Analytics APIHistorical 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'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.
How do I fetch historical P/E?