Package | Description |
---|---|
com.dukascopy.api | |
com.dukascopy.api.feed | |
com.dukascopy.api.instrument |
Modifier and Type | Method and Description |
---|---|
Set<IFinancialInstrument> |
IContext.getSubscribedFinancialInstruments()
Returns set of the currently subscribed instruments
|
Modifier and Type | Method and Description |
---|---|
Object[] |
IIndicators.calculateIndicator(IFinancialInstrument financialInstrument,
Period period,
OfferSide[] side,
String functionName,
IIndicators.AppliedPrice[] inputTypes,
Object[] optParams,
Filter filter,
int numberOfCandlesBefore,
long time,
int numberOfCandlesAfter)
This is a universal function that allows getting values for any indicator available, including user indicators.
|
Object[] |
IIndicators.calculateIndicator(IFinancialInstrument financialInstrument,
Period period,
OfferSide[] side,
String functionName,
IIndicators.AppliedPrice[] inputTypes,
Object[] optParams,
int shift)
This is a universal function that allows getting values for any indicator available, including user indicators.
|
Object[] |
IIndicators.calculateIndicator(IFinancialInstrument financialInstrument,
Period period,
OfferSide[] side,
String functionName,
IIndicators.AppliedPrice[] inputTypes,
Object[] optParams,
long from,
long to)
This is a universal function that allows getting values for any indicator available, including user indicators.
|
IBar |
IHistory.getBar(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
int shift)
Returns bar for specified instrument, period and side, that is shifted back in time for number in bars specified in
shift
parameter, 0 - current bar (currently generated from ticks), 1 - previous bar (last formed bar) If there is no bar loaded at that
position, then function returns null. |
List<IBar> |
IHistory.getBars(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
Filter filter,
int numberOfCandlesBefore,
long time,
int numberOfCandlesAfter)
Returns bars for specified instrument, period and side.
|
List<IBar> |
IHistory.getBars(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
Filter filter,
long from,
long to)
Returns bars for specified instrument, period, side and filter.
|
List<IBar> |
IHistory.getBars(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
long from,
long to)
Returns bars for specified instrument, period and side.
|
IChart |
IContext.getChart(IFinancialInstrument financialInstrument)
Returns first chart for specified instrument.
|
Set<IChart> |
IContext.getCharts(IFinancialInstrument financialInstrument)
Returns set of charts for specified instrument.
|
ITick |
IHistory.getLastTick(IFinancialInstrument financialInstrument)
Returns last tick for specified instrument
|
List<IOrder> |
IHistory.getOrdersHistory(IFinancialInstrument financialInstrument,
long from,
long to)
Returns orders for specified instrument and time interval.
|
long |
IHistory.getStartTimeOfCurrentBar(IFinancialInstrument financialInstrument,
Period period)
Returns starting time of the current bar (bar currently generated from ticks) for specified instrument and period.
|
ITick |
IHistory.getTick(IFinancialInstrument financialInstrument,
int shift)
Returns tick for specified instrument, that is shifted back in time for number in ticks specified in
shift
parameter, 0 - current tick, 1 - previous tick. |
List<ITick> |
IHistory.getTicks(IFinancialInstrument financialInstrument,
int numberOfOneSecondIntervalsBefore,
long time,
int numberOfOneSecondIntervalsAfter)
Returns ticks for specified instrument, time and count.
|
List<ITick> |
IHistory.getTicks(IFinancialInstrument financialInstrument,
long from,
long to)
Returns ticks for specified instrument and time interval.
|
long |
IHistory.getTimeOfLastTick(IFinancialInstrument financialInstrument)
Returns time of last tick received for specified instrument.
|
void |
DataLoadingListener.newBar(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
long time,
double open,
double close,
double low,
double high,
double vol)
Called to pass bar data
|
void |
DataLoadingListener.newTick(IFinancialInstrument financialInstrument,
long time,
double ask,
double bid,
double askVol,
double bidVol)
Called to pass tick data
|
void |
IHistory.readBars(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
Filter filter,
int numberOfCandlesBefore,
long time,
int numberOfCandlesAfter,
DataLoadingListener barListener,
LoadingProgressListener loadingProgress)
Reads bars from the local cache in the background.
|
void |
IHistory.readBars(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
Filter filter,
long from,
long to,
DataLoadingListener barListener,
LoadingProgressListener loadingProgress)
Reads bars from the local cache in the background.
|
void |
IHistory.readBars(IFinancialInstrument financialInstrument,
Period period,
OfferSide side,
long from,
long to,
DataLoadingListener barListener,
LoadingProgressListener loadingProgress)
Reads bars from the local cache in the background.
|
void |
IHistory.readOrdersHistory(IFinancialInstrument financialInstrument,
long from,
long to,
LoadingOrdersListener ordersListener,
LoadingProgressListener loadingProgress)
Loads orders from the server in the background.
|
void |
IHistory.readTicks(IFinancialInstrument financialInstrument,
int numberOfOneSecondIntervalsBefore,
long time,
int numberOfOneSecondIntervalsAfter,
LoadingDataListener tickListener,
LoadingProgressListener loadingProgress)
Reads ticks from the local cache in the background.
|
void |
IHistory.readTicks(IFinancialInstrument financialInstrument,
long from,
long to,
DataLoadingListener tickListener,
LoadingProgressListener loadingProgress)
Reads ticks from the local cache in the background.
|
void |
IContext.subscribeToBarsFeed(IFinancialInstrument financialInstrument,
Period period,
OfferSide offerSide,
IBarFeedListener listener)
Subscribes passed listener on bars feed notification by passed instrument, period and offer side.
|
void |
IContext.subscribeToTicksFeed(IFinancialInstrument financialInstrument,
ITickFeedListener listener)
Subscribes passed listener on ticks feed notification by passed instrument.
|
Modifier and Type | Method and Description |
---|---|
void |
IContext.setSubscribedFinancialInstruments(Set<IFinancialInstrument> financialInstruments)
Checks that the instruments are subscribed and subscribes to the instrument if it's not.
|
void |
IContext.setSubscribedFinancialInstruments(Set<IFinancialInstrument> financialInstruments,
boolean lock)
Checks that the instruments are subscribed and subscribes to the instrument if it's not.
|
Modifier and Type | Method and Description |
---|---|
IFinancialInstrument |
IFeedInfo.getFinancialInstrument()
Getter for financial instrument
|
Modifier and Type | Method and Description |
---|---|
IFeedInfo |
IFeedInfoProvider.createFeed(DataType dataType,
IFinancialInstrument financialInstrument,
Period period,
OfferSide offerSide,
PriceRange priceRange,
ReversalAmount reversalAmount,
TickBarSize tickBarSize,
Filter filter) |
IFeedInfo |
IFeedInfoProvider.createLineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide)
Create Line Break feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createLineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession)
Create Line Break feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createLineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
Create Line Break feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createLineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
LineBreakLookback lookbackLines)
Create Line Break feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createLineBreakFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
LineBreakLookback lookbackLines,
Period basePeriod)
Create Line Break feed info
|
IFeedInfo |
IFeedInfoProvider.createPointAndFigureFeedInfo(IFinancialInstrument financialInstrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide)
Create Point and Figure feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createPointAndFigureFeedInfo(IFinancialInstrument financialInstrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide,
Period basePeriod)
Create Point and Figure feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createPointAndFigureFeedInfo(IFinancialInstrument financialInstrument,
PriceRange boxSize,
ReversalAmount reversalAmount,
OfferSide offerSide,
Period basePeriod,
DataInterpolationDescriptor interpolationDescriptor)
Create Point and Figure feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRangeBarFeedInfo(IFinancialInstrument financialInstrument,
PriceRange priceRange,
OfferSide offerSide)
Create Range bar feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRangeBarFeedInfo(IFinancialInstrument financialInstrument,
PriceRange priceRange,
OfferSide offerSide,
Period basePeriod)
Create Range bar feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRangeBarFeedInfo(IFinancialInstrument financialInstrument,
PriceRange priceRange,
OfferSide offerSide,
Period basePeriod,
DataInterpolationDescriptor interpolationDescriptor)
Create Range bar feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide)
Create Renko feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession)
Create Renko feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint)
Create Renko feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createRenkoFeedInfo(IFinancialInstrument financialInstrument,
PriceRange brickSize,
OfferSide offerSide,
Period timeSession,
CreationPoint creationPoint,
Period basePeriod)
Create Renko feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createTickBarInfo(IFinancialInstrument financialInstrument,
TickBarSize tickBarSize,
OfferSide offerSide)
Create Tick Bar info
|
IFeedInfo |
IFeedInfoProvider.createTickBarInfo(IFinancialInstrument financialInstrument,
TickBarSize tickBarSize,
OfferSide offerSide,
Period basePeriod)
Create Tick Bar info
|
IFeedInfo |
IFeedInfoProvider.createTicksFeedInfo(IFinancialInstrument financialInstrument)
Create Time Period Aggregation feed info, default values are taken from:
base period,
IFeedInfo.DEFAULT_BASE_PERIOD . |
IFeedInfo |
IFeedInfoProvider.createTimePeriodFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession)
Create Time Period feed info, default values are taken from:
|
IFeedInfo |
IFeedInfoProvider.createTimePeriodFeedInfo(IFinancialInstrument financialInstrument,
OfferSide offerSide,
Period timeSession,
Filter filter)
Create Time Period feed info, default values are taken from:
|
void |
IFeedInfo.setFinancialInstrument(IFinancialInstrument financialInstrument)
Setter for financial instrument
|
Modifier and Type | Method and Description |
---|---|
IFinancialInstrument |
IFinancialInstrumentProvider.getFinancialInstrument(Instrument instrument) |
IFinancialInstrument |
IFinancialInstrumentProvider.getFinancialInstrument(String instrument) |
Modifier and Type | Method and Description |
---|---|
Set<IFinancialInstrument> |
IFinancialInstrumentProvider.getFinancialInstruments() |
Set<IFinancialInstrument> |
IInstrumentGroup.getInstruments()
Returns instruments of the group
|
Modifier and Type | Method and Description |
---|---|
Instrument |
IFinancialInstrumentProvider.getInstrument(IFinancialInstrument financialInstrument) |
Copyright © 2016. All rights reserved.