Excel Add-in for IM

INFRONT.GETTICKDATA function

The INFRONT.GETSELECTION function allows to retrieve intraday tick-by-tick data for an instrument

Function syntax

Visual Basic
INFRONT.GETTICKDATA( <instrument identifier>, <datetime start>, <datetime end>, <options>)



Parameters

Instrument identifier

See GETFIELD function

Datetime start

The start date and time from the period for which you want the intraday data.  
Format should be <year>-<month>-<day>T<hour>:<minutes>:<seconds>  eg 2023-02-01T09:00:00

Datetime end

The start date and time from the period for which you want the intraday data.  
Format should be <year>-<month>-<day>T<hour>:<minutes>:<seconds>  eg 2023-02-01T09:00:00

Options

The options are supposed to be provided as JSON, however it seems you can only provide parameters as string from Excel and parse it as JSON. That means the quotes inside the JSON string have to be double quoted for valid JSON.

Example


=INFRONT.GETTICKDATA("DTR0CK.ETR", "2022-11-21T12:00:00", "2022-11-21T13:00:00", "{""intradayType"":""BID""}")


Optional parameter

Description

sorting

Sorting of the tick prices. Default is ASC (oldest prices first).

Possible values

  • ASC

  • DESC

Example

=INFRONT.GETTICKDATA("DTR0CK.ETR", "2022-11-21 12:00:00", "2022-11-21 13:00:00", "{""tickAggregation"":""5"", ""sorting"":""DESC""}")


convertTo

ISO currency code which indicates to which currency the value should be converted.  

Example

=INFRONT.GETTICKDATA("710000.ETR", "2022-12-08 10:00:00", "2022-12-08 10:05:00", "{""convertTo"":""JPY""}")


tickAggregation

The number of ticks to aggregate. Default is 0.

Possible values: 0, 5, 10, 20, 50, 100

Example

=INFRONT.GETTICKDATA("DTR0CK.ETR", "2022-11-21T12:00:00", "2022-11-21T13:00:00", "{""tickAggregation"":""5""}")


intradayType

Decide what price type you want to show.

Possible values

  • LAST

  • BID

  • ASK

Example

=INFRONT.GETTICKDATA("DTR0CK.ETR", "2022-11-21T12:00:00", "2022-11-21T13:00:00", "{""intradayType"":""BID""}")