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