Skip to main content

INFRONT.GETHISTORY function

Gets the price history for an instrument

Parameters 

  1. instrument {string} Infront instrumentId, ISIN, ISIN.MIC, Infront instrumentKey or search string 

  2. startDate {string} Start date

  3. endDate {string} End date

  4. [fieldList] {string} Comma separated fields (available fields: lastPriceTimestamp, firstPrice, highPrice, lowPrice, lastPrice, volume, cumulativeTrades)

  5. [options] {string} Options in JSON format 

[sorting] {"ASC" | "DESC"} 

Sorting of tick prices.
Default: DESC (latest prices first) 

[convertTo] {string} 

Convert prices to currency (IsoAlpha3, e.g., "EUR").
Default: undefined (use original currency) 

[processPayment] {boolean} 

Process payments / dividends.
Default: false

[processSplit] {boolean} 

Process splits / corporate actions.
Default: true

[targetCell] {string}

Target cell where the output starts at.
Default: cell of the formula itself

Returns 

Matrix of historical prices {number[][]} 

Examples 

=INFRONT.GETHISTORY("DTR0CK.ETR", "2023-01-01", "2023-02-01")

=INFRONT.GETHISTORY("710000.ETR", "2024-01-01", TODAY(), "lastPriceTimestamp, lastPrice", "{""sorting"":""ASC"",""convertTo"":""JPY""}")

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.