com.dukascopy.api
Interface LoadingDataListener


public interface LoadingDataListener

Listener to receive ticks and candles

Author:
Dmitry Shohov

Method Summary
 void newBar(Instrument instrument, Period period, OfferSide side, long time, double open, double close, double low, double high, double vol)
          Called to pass bar data
 void newTick(Instrument instrument, long time, double ask, double bid, double askVol, double bidVol)
          Called to pass tick data
 

Method Detail

newTick

void newTick(Instrument instrument,
             long time,
             double ask,
             double bid,
             double askVol,
             double bidVol)
Called to pass tick data

Parameters:
instrument - instrument of the tick
time - time of the tick
ask - best ask price
bid - best bid price
askVol - volume for the best ask price
bidVol - volume for the best bid price

newBar

void newBar(Instrument instrument,
            Period period,
            OfferSide side,
            long time,
            double open,
            double close,
            double low,
            double high,
            double vol)
Called to pass bar data

Parameters:
instrument - instrument of the bar
period - period of the bar
side - side of the bar (bid or ask)
time - time of the bar
open - open price
close - close price
low - lowest price
high - highest price
vol - volume of the bar (sum of volumes for best prices of all ticks)


Copyright © 2009. All Rights Reserved.