public interface CandleService
Modifier and Type | Method and Description |
---|---|
List<com.dxfeed.event.candle.Candle> |
getCandles(com.dxfeed.event.candle.CandleSymbol candleSymbol,
long fromTime,
long toTime)
Returns list of candles for the specified
CandleSymbol and range of time. |
List<com.dxfeed.event.candle.Candle> |
getCandles(Collection<com.dxfeed.event.candle.CandleSymbol> symbols,
long fromTime,
long toTime)
Returns list of candles for the specified collection of
CandleSymbol and range of time. |
List<com.dxfeed.event.candle.Candle> |
getCandlesAsOf(Collection<com.dxfeed.event.candle.CandleSymbol> symbols,
long fromTime,
long toTime,
int asOfYmd)
Returns list of candles for the specified collection of
CandleSymbol and range of time for specified
as of date. |
List<com.dxfeed.event.candle.Candle> |
getLastCandles(com.dxfeed.event.candle.CandleSymbol candleSymbol,
int count)
Returns list of candles for the particular
CandleSymbol and with specified count. |
List<com.dxfeed.event.market.TimeAndSale> |
getTimeAndSaleAtTime(List<com.dxfeed.event.candle.CandleSymbol> symbols,
long time)
Finds
TimeAndSale events which have the the same time as passed one or closest to it. |
List<com.dxfeed.event.candle.Candle> getCandles(com.dxfeed.event.candle.CandleSymbol candleSymbol, long fromTime, long toTime)
CandleSymbol
and range of time.
The candles are ordered by time
in the collection.candleSymbol
- the candle symbol to request (see CandleSymbol
)fromTime
- the time, inclusive, to request events from (see Candle.getTime
).toTime
- the time, inclusive, to request events to (see Candle.getTime
).
Use Long.MAX_VALUE
to retrieve events without an upper limit on time.List<com.dxfeed.event.candle.Candle> getCandles(Collection<com.dxfeed.event.candle.CandleSymbol> symbols, long fromTime, long toTime)
CandleSymbol
and range of time.
The candles are ordered by time
in the collection and if the time are equal - by
CandleSymbol.toString()
.symbols
- the list of candle symbols to request (see CandleSymbol
)fromTime
- the time, inclusive, to request events from (see Candle.getTime
).toTime
- the time, inclusive, to request events to (see Candle.getTime
).
Use Long.MAX_VALUE
to retrieve events without an upper limit on time.List<com.dxfeed.event.candle.Candle> getCandlesAsOf(Collection<com.dxfeed.event.candle.CandleSymbol> symbols, long fromTime, long toTime, int asOfYmd)
CandleSymbol
and range of time for specified
as of date. In other words - how candles were look like at passed date in the past.
The candles are ordered by time
in the collection and if the time are equal - by
CandleSymbol.toString()
.symbols
- the list of candle symbols to request (see CandleSymbol
)fromTime
- the time, inclusive, to request events from (see Candle.getTime
).toTime
- the time, inclusive, to request events to (see Candle.getTime
).
Use Long.MAX_VALUE
to retrieve events without an upper limit on time.asOfYmd
- the integer value in yyyymmdd format to specify as of dateList<com.dxfeed.event.candle.Candle> getLastCandles(com.dxfeed.event.candle.CandleSymbol candleSymbol, int count)
CandleSymbol
and with specified count.
The candles are ordered by time
in the collection. Number of candles in the result
collection may be less than count
if there is no data to build more.candleSymbol
- the candle symbol to request (see CandleSymbol
)count
- number of candles to requestCopyright © 2020 Devexperts. All Rights Reserved.