}
@Override
public void realtimeBar(int reqId, long time, double open, double high, double low, double close, long volume, double wap, int count) {
if (reqId == getPendingReqId()) {
final OHLCPoint ohlc = new OHLCPoint(BarSize.FIVE_SECS, new Date((long)time * 1000L), open, high, low, close, volume, wap, count);
threadPool.execute(new Runnable() {
@Override
public void run() {
for (IRealTimeDataListener listener : currentListeners) {
try {