get_market_data_snapshot()
get_market_data_snapshot()
Users may request market data using get_market_data_snapshot() to retrieve available market data. The request currently supports tickPrice, tickSize, tickString, tickGeneric, tickNews, and tickOptionCompution data.
Request Arguments
Contract Object for the instrument to retrieve market data for.
Comma-separated values to determine additional data to retrieve. Defaults to an empty string, returning only the basic data such as Last, Bid, and Ask. See Available Tick Types for more details.
Determine if a single snapshot should be returned or if data should be continuously updated until the timeout threshold has been reached. Default: True, returning a snapshot of data as soon as possible.
Duration to wait for the response until termination. Uses the default timeout value passed to TWSSyncWrapper.
Response Object
Data returned by get_market_data_snapshot() is delivered as a dictionary object. Values are returned as the affiliated tick types alongside any price or attribute data.
Properties
The value for the given tick type. Can include price values (float), size values (decimal), or direct information (string).

