Skip to content

Functions

Henrik edited this page Mar 26, 2020 · 6 revisions

FUNCTIONS

BD_INSTRUMENTS()
BD_STOCKPRICE(InstId; StartDate; EndDate)
BD_SCREENER_KPI(KpiId; CalcGroup; Calc; Standing)
BD_HISTORY_KPI(InstId; KpiId; ReportType; PriceType; Standing)
BD_KPI_SUMMARY(InstId; ReportType; Fixed)
BD_REPORT_YEAR(InstId; Standing; Fixed)
BD_REPORT_R12(InstId; Standing; Fixed)
BD_REPORT_QUARTER(InstId; Standing; Fixed)

BD_INSTRUMENTS()

Get list with all Instruments

Sample

=BD_INSTRUMENTS()

BD_STOCKPRICE(InsId; StartDate; EndDate)

Get all Stockprice history for one instrument.
You can add a time range.

Syntax Description Required Type Sample
InsId Instrument ID yes number 97
StartDate Oldest date from now no String "2018-01-01"
EndDate Closest date from now no String "2018-02-01"

Samples

=BD_STOCKPRICE(97)  

Get all stockprice history of Stock Hennes & Mauritz B

=BD_STOCKPRICE(97;"2018-01-01";"2018-02-01")

Get stockprice history for a dateperiod

=BD_STOCKPRICE(B1;A1;A2)

Cell reference. B1 is the number of instrument. A1 and A2 is date.

=BD_STOCKPRICE(B1;A1;IDAG())

To get last date you can user formula =TODAY() or =IDAG()

BD_SCREENER_KPI(KpiId; CalcGroup; Calc; Standing)

Borsdata Screener return one kpi value for all instruments. The Kpi Value is calculated with the lastest report and stockprice data.

Syntax Description Required Type Sample
KpiId Kpi Id yes number 247
CalcGroup Internal name for calculation yes String "last"
Calc Internal name for calculation yes String "latest"
Standing Show table as flatt or standing.1=default no number 0, 1

To find the correct KpiId, CalcGroup and Calc, you can go to screener and use the API Url.
https://github.com/Borsdata-Sweden/API/wiki/KPI-Screener

Sample

Copy Screener API URL.
https://apiservice.borsdata.se/v1/instruments/kpis/247/last/latest?authKey=[YOUR_API_KEY]

In excel the same call will be…

=BD_SCREENER_KPI(247; "last"; "latest")
=BD_SCREENER_KPI(247; "last"; "latest",0)

Show as flatt table

=BD_SCREENER_KPI(2;"last";"latest")

Lastest P/E

Clone this wiki locally