Package | Description |
---|---|
com.dukascopy.api |
Modifier and Type | Interface and Description |
---|---|
interface |
IDailyHighLowListener
Listens to the daily maximum and minimum prices for corresponding
instrument |
Modifier and Type | Method and Description |
---|---|
Map<Period,Map<Instrument,Collection<IHighLowListener>>> |
IDataService.getHighLowListeners()
Returns all high/low listeners
|
Map<Instrument,Collection<IHighLowListener>> |
IDataService.getHighLowListeners(Period period)
Returns all high/low listeners subscribed to the passed period and grouped by instrument
|
Collection<IHighLowListener> |
IDataService.getHighLowListeners(Period period,
Instrument instrument)
Returns all high/low listeners subscribed to the passed period and instrument
|
Modifier and Type | Method and Description |
---|---|
void |
IDataService.addHighLowListener(Period period,
Instrument instrument,
IHighLowListener listener)
The method adds high/low listener.
After addition, listener will be notified with the current best period's high/low (If in progress candle exists in the system) If in progress candle doesn't exist in the system listener will be notified as soon as candle arrives |
void |
IDataService.removeHighLowListener(IHighLowListener listener)
Removes high/low listener.
NOTE: shared instance of listener will be unsubscribed from every period and/or instrument. |
Copyright © 2016. All rights reserved.