realtimeBar()

This method receives the real-time bars data results.

void realtimeBar(int reqId, long time, double open, double high, double low, double close, long volume, double wap, int count)

Parameter

Description

reqId

The ticker ID of the request to which this bar is responding.

time

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.