You are here: C++ > Class EWrapper Functions > Historical Data > historicalData()

historicalData()

This function receives the requested historical data results.

virtual void historicalData(TickerId reqId, const IBString& date, double open, double high, double low, double close, int volume, int barCount, double WAP, int hasGaps)

Parameter Type Description
reqId TickerId The ticker ID of the request to which this bar is responding.
date IBString The date-time stamp of the start of the bar. The format is determined by the reqHistoricalData() formatDate parameter.
open double The bar opening price.
high double The high price during the time covered by the bar.
low double The low price during the time covered by the bar.
close double The bar closing price.
volume int The volume during the time covered by the bar.
barCount int When TRADES historical data is returned, represents the number of trades that occurred during the time period the bar covers.
WAP double The weighted average price during the time covered by the bar.
hasGaps int Reports whether or not there are gaps in the data.