public interface CandleService
Modifier and Type | Field and Description |
---|---|
static com.devexperts.logging.Logging |
log |
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. |
default List<com.dxfeed.event.candle.Candle> |
getLastCandles(com.dxfeed.event.candle.CandleSymbol candleSymbol,
int count)
Deprecated.
will be removed in future releases
|
List<com.dxfeed.event.candle.Candle> |
getPlainCandles(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. |
default List<com.dxfeed.event.market.TimeAndSale> |
getTimeAndSaleAtTime(List<com.dxfeed.event.candle.CandleSymbol> symbols,
long time)
Deprecated.
subject for removal. Will return empty collection always.
|
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.
Candles in the list are marked with event flags (see "Event Flag" section in IndexedEvent
).
To represent empty response will be returned the list with single empty candle
with IndexedEvent.REMOVE_EVENT
flag in addition.
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()
.
Candles in the list are marked with event flags (see "Event Flag" section in IndexedEvent
)
for each particular symbol. If there are no candles for the symbol the result will be represented as single empty candle
with IndexedEvent.REMOVE_EVENT
flag in addition.
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> getPlainCandles(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()
.
Candles in the list are not marked with event flags (see "Event Flag" section in IndexedEvent
)
If there are no candles for some symbols the resulting list won't contain information about that.
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 looked 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()
.
Candles in the list are marked with event flags (see "Event Flag" section in IndexedEvent
)
for each particular symbol. If there are no candles for the symbol the result will be represented as single empty candle
with IndexedEvent.REMOVE_EVENT
flag in addition.
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 date@Deprecated default List<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.
Candles in the list are marked with event flags (see "Event Flag" section in IndexedEvent
).
To represent empty response will be returned the list with single empty candle
with IndexedEvent.REMOVE_EVENT
flag in addition.
candleSymbol
- the candle symbol to request (see CandleSymbol
)count
- number of candles to request@Deprecated default List<com.dxfeed.event.market.TimeAndSale> getTimeAndSaleAtTime(List<com.dxfeed.event.candle.CandleSymbol> symbols, long time)
TimeAndSale
events which have the the same time as passed one or closest to it.Copyright © 2023 Devexperts. All rights reserved.