Skip to content

BD_STOCKPRICE

Henrik edited this page Sep 8, 2022 · 5 revisions

BD_STOCKPRICE(InsId; StartDate; EndDate; RemoveRange)

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"
RemoveRange clear old data no string range "A2:C100"

RemoveRange

Samples Nordic

=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.

Samples Global

=BD_STOCKPRICE(10214)  

Return Apple

Get Today date

=BD_STOCKPRICE(B1;A1;IDAG())

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

Note. As we only provide EndDay Stockprice the last price is normaly the previous day.
We update new stockprices when Market closes. If you update after 20:00 (Utc+1) you should get the last day.