tickPrice()

This method is called when the market data changes. Prices are updated immediately with no delay.

void tickPrice(int tickerId, int field, double price, int canAutoExecute)

Parameter

Description

tickerId

The ticker Id that was specified previously in the call to reqMktData()

field

Specifies the type of price. Pass the field value into TickType.getField(int tickType) to retrieve the field description.  For example, a field value of 1 will map to bidPrice, a field value of 2 will map to askPrice, etc.

  • 1 = bid

  • 2 = ask

  • 4 = last

  • 6 = high

  • 7 = low

  • 9 = close

price

Specifies the price for the specified field

canAutoExecute

Specifies whether the price tick is available for automatic execution. Possible values are:

  • 0 = not eligible for automatic execution

  • 1 = eligible for automatic execution