Class TimeSeriesSubscriptionSymbol<T>
Represents subscription to time-series of events.
Instances of this class can be used with DXFeedSubscription to specify subscription
for time series events from a specific time. By default, subscribing to time-series events by
their event symbol object, the subscription is performed to a stream of new events as they happen only.
For more details see Javadoc.
public class TimeSeriesSubscriptionSymbol<T> : IndexedEventSubscriptionSymbol<T>
Type Parameters
T
The type of event symbol.
- Inheritance
-
TimeSeriesSubscriptionSymbol<T>
- Derived
- Inherited Members
Constructors
TimeSeriesSubscriptionSymbol(T, DateTimeOffset)
Initializes a new instance of the TimeSeriesSubscriptionSymbol<T> class with a specified event symbol and from time in milliseconds since Unix epoch.
public TimeSeriesSubscriptionSymbol(T eventSymbol, DateTimeOffset fromTime)
Parameters
eventSymbol
TThe event symbol.
fromTime
DateTimeOffsetThe from time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
TimeSeriesSubscriptionSymbol(T, long)
Initializes a new instance of the TimeSeriesSubscriptionSymbol<T> class with a specified event symbol and from time in milliseconds since Unix epoch.
public TimeSeriesSubscriptionSymbol(T eventSymbol, long fromTime)
Parameters
eventSymbol
TThe event symbol.
fromTime
longThe from time is measured in milliseconds between the current time and midnight, January 1, 1970 UTC.
Properties
FromTime
Gets subscription time in milliseconds since Unix epoch.
public long FromTime { get; }
Property Value
Methods
Equals(object?)
Indicates whether some other time series event subscription symbol has the same EventSymbol.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true
if the specified object is equal to the current object; otherwise,false
.
GetHashCode()
Returns a hash code value for this object.
public override int GetHashCode()
Returns
- int
A hash code value for this object.
ToString()
public override string ToString()