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.
|
|
price |
Specifies the price for the specified field |
|
canAutoExecute |
Specifies whether the price tick is available for automatic execution. Possible values are:
|