reqMktData()

Call this method to request market data. The market data will be returned by the tickPrice(), tickSize(), tickOptionComputation(), tickGeneric(), tickString() and tickEFP() methods.

void reqMktData(int tickerId, Contract contract, String genericTicklist, boolean snapshot)

Parameter

Description

tickerId

The ticker id. Must be a unique value. When the market data returns, it will be identified by this tag. This is also used when canceling the market data.

contract

This class contains attributes used to describe the contract.

genericTicklist

A comma delimited list of generic tick types.  Tick types can be found in the Generic Tick Types page.

snapshot

Check to return a single snapshot of market data and have the market data subscription cancel. Do not enter any genericTicklist values if you use snapshot.