Histogram Data
Introduction
Instead of returned data points as a function of time as with the function EClient.reqHistoricalData(), histograms return data as a function of price level with function EClient.reqHistogramData().
Request Histogram Data
EClient.reqHistogramData(requestId, contract, useRth, period)
Returns data histogram of specified contract.
id of the request
Contract object that is subject of query.
Data from regular trading hours (1), or all available hours (0).
String value of requested date range. This will be tied to the same bar size strings as the historical bar sizes
Python
Java
C++
C#
VB.NET
Receive Histogram Data
EWrapper.histogramData(requestId, data)
Returns relevant histogram data.
Request identifier used to track data.
Returned Tuple of histogram data, number of trades at specified price level.
Python
Java
C++
C#
VB.NET
Cancel Histogram Data
EClient.cancelHistogramData()
An active histogram request which has not returned data can be cancelled with EClient.cancelHistogramData
Request identifier used to track data.

