Benchmark API: Performance vs. Index

<- All Datasets

Available Datasets

Performance vs. Indices & ETFs

A stock's return in absolute terms and vs. the DAX, MSCI World or other references – highs, lows and periods from 1 month to 5 years.

Compare a stock's performance against the DAX, MSCI World or any other reference – in one call. Returns for 1 month to 5 years, highs and lows, plus out- or underperformance against each index or ETF you choose.

How benchmark metrics are computed

Calculated from adjusted closing prices for the stock and each reference. Relative performance = stock return minus index return for the same period.

One call consumes 1 request unit per symbol.

Example document: https://api.leeway.tech/api/v1/public/historicalquotes/benchmark?symbol=SAP.XETRA&benchmark=ACWI.US,DAX.INDX

curl -s 'https://api.leeway.tech/api/v1/public/historicalquotes/benchmark?symbol=SAP.XETRA&benchmark=ACWI.US,DAX.INDX&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.

Benchmark Response Fields

Returns, highs/lows and optional comparison values per chosen index. For more detail visit the API Glossary.

Benchmark Performance

highLow
1M, 52W and 5Y high & low prices for the symbol.
performance
Absolute % return for 1M, 3M, 6M, 1Y, 3Y, 5Y.
performance[period].relative
Outperformance vs each benchmark (symbol return − benchmark return).
symbol
Query param: symbol.exchange to analyse (e.g. SAP.XETRA).
benchmark
Query param: comma-separated benchmark symbols (e.g. ACWI.US,DAX.INDX).

Frequently Asked Questions

Which performance periods are returned?+
Absolute returns for 1M, 3M, 6M, 1Y, 3Y and 5Y plus high/low for 1M, 52W and 5Y. Per period optionally relative: outperformance vs each specified benchmark.
Which benchmarks can I pass?+
Any indices or ETFs – you can pass several references in one call, e.g. MSCI World and DAX alongside the stock.
How do I fetch benchmark comparisons?+

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