dxFeed .Net API  5.13.0
dxFeed .Net API library intended to provide market data access for DX clients
Properties
com.dxfeed.api.IDXFeedTimeSeriesSubscription< E > Interface Template Reference

More...

Inheritance diagram for com.dxfeed.api.IDXFeedTimeSeriesSubscription< E >:
[legend]
Collaboration diagram for com.dxfeed.api.IDXFeedTimeSeriesSubscription< E >:
[legend]

Properties

long FromTimeStamp [get, set]
 Gets or sets the earliest timestamp from which time-series of events shall be received. The timestamp is in milliseconds from midnight, January 1, 1970 UTC. More...
 
- Properties inherited from com.dxfeed.api.IDXFeedSubscription< E >
bool IsClosed [get]
 Returns true if this subscription is closed.

See also
Close()
More...
 
ISet< Type > EventTypes [get]
 Returns a set of subscribed event types. The resulting set cannot be modified. More...
 

Additional Inherited Members

- Public Member Functions inherited from com.dxfeed.api.IDXFeedSubscription< E >
void Attach (IDXFeed feed)
 Attaches subscription to the specified feed. More...
 
void Detach (IDXFeed feed)
 Detaches subscription from the specified feed. More...
 
void Close ()
 
bool ContainsEventType (Type eventType)
 Returns true if this subscription contains the corresponding event type. More...
 
void Clear ()
 
ISet< object > GetSymbols ()
 Returns a set of subscribed symbols. The resulting set cannot be modified. The contents of the resulting set are undefined if the set of symbols is changed after invocation of this method, but the resulting set is safe for concurrent reads from any threads. The resulting set maybe either a snapshot of the set of the subscribed symbols at the time of invocation or a weakly consistent view of the set. More...
 
void SetSymbols (ICollection< object > symbols)
 
void SetSymbols (params object[] symbols)
 
void AddSymbols (ICollection< object > symbols)
 
void AddSymbols (params object[] symbols)
 
void AddSymbols (object symbol)
 
void RemoveSymbols (ICollection< object > symbols)
 
void RemoveSymbols (params object[] symbols)
 
void AddEventListener (IDXFeedEventListener< E > listener)
 Adds listener for events. Newly added listeners start receiving only new events. This method does nothing if this subscription is IsClosed. More...
 
void RemoveEventListener (IDXFeedEventListener< E > listener)
 Removes listener for events. More...
 
- Events inherited from com.dxfeed.api.IDXFeedSubscription< E >
DXFeedSymbolsUpdateEventHandler OnSymbolsAdded
 Event calls when any symbols is added to subscription. More...
 
DXFeedSymbolsUpdateEventHandler OnSymbolsRemoved
 Event calls when any symbols is removed from subscription. More...
 
DXFeedSubscriptionClosedEventHandler OnSubscriptionClosed
 Event calls when subscription is closing. More...
 

Detailed Description

Extends IDXFeedSubscription<E> to conveniently subscribe to time-series of events for a set of symbols and event types.

Only events that implement IDxTimeSeriesEvent<T> interface can be subscribed to with IDXFeedTimeSeriesSubscription<E>.

From time

The value of FromTimeStamp property defines the time-span of events that are subscribed to. Only events that satisfy event.TimeStamp >= thisSubscription.FromTime are looked for.

The value FromTimeStamp is initially set to long.MaxValue with a special meaning that no events will be received until FromTime is changed with FromTimeStamp setter.

Threads and locks.

This class is thread-safe and can be used concurrently from multiple threads without external synchronization.

Template Parameters
EThe type of events.
Type Constraints
E :IDxTimeSeriesEvent 

Property Documentation

◆ FromTimeStamp

long com.dxfeed.api.IDXFeedTimeSeriesSubscription< E >.FromTimeStamp
getset

Gets or sets the earliest timestamp from which time-series of events shall be received. The timestamp is in milliseconds from midnight, January 1, 1970 UTC.


The documentation for this interface was generated from the following file: