Skip to content

BD_HISTORY_KPI

Henrik edited this page Mar 26, 2020 · 7 revisions

BD_HISTORY_KPI(InstId; KpiId; ReportType; PriceType; Standing)

Syntax Description Required Type Sample
InstId Instrument Id yes number 3
KpiId Kpi Id yes number 2
ReportType What report data is used for kpi calculation."year", "r12", "quarter" yes String "year"
PriceType What stockprice is used for historical kpis. yes String "mean"

Here you can see all Historical Kpis that is avaible https://github.com/Borsdata-Sweden/API/wiki/KPI-History

Sample

=BD_HISTORY_KPI(97;2;"year";"mean")

This will return current and historical P/E for Hennes & Mauritz (97). The PE value is calculated with Yearly Report data and the mean stockprice for one year.

=BD_HISTORY_KPI(3;2;"r12";"high")

This will return current and historical P/E for ABB (3). The PE value is calculated with Rolling 12 month (r12) Report data and use the highest stockprice for one year.

Clone this wiki locally