T
- type of the event symbol for this event type.public interface TimeSeriesEvent<T> extends EventType<T>
TimeAndSale
events represent the actual sales
that happen on a market exchange at specific time moments, while
Candle
events represent snapshots of aggregate information
about trading over a specific time period.
Time-series events can be used with DXFeedTimeSeriesSubscription
to receive a time-series history of past events. Time-series events
are conflated based on unique event identifiers for each symbol.
Event identifier is available via getEventId
method.
The history of past events retains only one (last) event for the given event identifier.
Classes that implement this interface may also implement
LastingEvent
interface, which makes it possible to
use DXFeed.getLastEvent
method to
retrieve the last event for the corresponding symbol.
Modifier and Type | Method and Description |
---|---|
long |
getEventId()
Returns identifier of this event.
|
long |
getTime()
Returns timestamp of the event.
|
getEventSymbol, setEventSymbol
long getEventId()
event time
inside.
Ultimately, the scheme for event identifiers is specific for each even type. The actual classes for specific event types perform the corresponding encoding.
long getTime()
System.currentTimeMillis()
Copyright © 2014 Devexperts. All Rights Reserved.