dxFeed .Net API
7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Class provides native snapshot subscription More...
Public Member Functions | |
NativeSnapshotSubscription (NativeConnection connection, long time, IDxSnapshotListener listener) | |
Creates the new native order or candle subscription on snapshot. More... | |
NativeSnapshotSubscription (NativeConnection connection, EventType eventType, long time, IDxSnapshotListener listener) | |
Creates the new native snapshot subscription with specified event type. More... | |
void | Dispose () |
Disposes the native snapshot subscription More... | |
void | AddSymbol (string symbol) |
Adds a symbol to the subscription. More... | |
void | AddSymbol (CandleSymbol symbol) |
Adds a candle symbol to the subscription. More... | |
void | AddSymbols (params string[] symbols) |
Adds symbols to the subscription. More... | |
void | AddSymbols (params CandleSymbol[] symbols) |
Adds candle symbols to the subscription. More... | |
void | RemoveSymbols (params string[] symbols) |
void | RemoveSymbols (params CandleSymbol[] symbols) |
void | SetSymbols (params string[] symbols) |
Sets symbols to the subscription. More... | |
void | SetSymbols (params CandleSymbol[] symbols) |
Sets multiple symbols to the subscription. More... | |
void | Clear () |
IList< string > | GetSymbols () |
Returns all symbols of the subscription. More... | |
void | AddSource (params string[] sources) |
Adds com.dxfeed.api.events.OrderSource to subscription. More... | |
void | SetSource (params string[] sources) |
Removes existing com.dxfeed.api.events.OrderSource from subscription and set new. More... | |
Static Public Attributes | |
static IntPtr | InvalidSnapshot = IntPtr.Zero |
Invalid snapshot More... | |
Properties | |
string | Symbol [get] |
Get symbol of snapshot More... | |
Class provides native snapshot subscription
|
inline |
Creates the new native order or candle subscription on snapshot.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
time | Milliseconds time in the past. |
listener | Snapshot events listener. |
ArgumentNullException | Listener is invalid. |
|
inline |
Creates the new native snapshot subscription with specified event type.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
eventType | Single event type. |
time | Milliseconds time in the past. |
listener | Snapshot events listener. |
ArgumentNullException | Listener is invalid. |
|
inline |
Adds com.dxfeed.api.events.OrderSource to subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
sources | List of com.dxfeed.api.events.OrderSource names. |
ArgumentException | Invalid sources parameter. |
InvalidOperationException | You try to add more than one source to subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Adds a symbol to the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbol | Symbol. |
ArgumentException | Invalid symbol parameter. |
InvalidOperationException | You try to add more than one symbol to snapshot subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Adds a candle symbol to the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbol | CandleSymbol. |
ArgumentException | Invalid symbol parameter. |
InvalidOperationException | You try to add more than one symbol to snapshot subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Adds symbols to the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbols | List of symbols. |
ArgumentException | Invalid symbols parameter. |
InvalidOperationException | You try to add more than one symbol to snapshot subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Adds candle symbols to the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbols | List of CandleSymbol. |
ArgumentException | Invalid symbols parameter. |
InvalidOperationException | You try to add more than one symbol to snapshot subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Clear all symbols from the subscription.
Snapshot will be IDisposable.Dispose().
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Disposes the native snapshot subscription
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
|
inline |
Returns all symbols of the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Removes symbols from the subscription.
Snapshot will be disposed if symbols contains snapshot symbol (for Snapshots only).
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbols | List of symbols. |
ArgumentException | Invalid symbols parameter. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Removes symbols from the subscription.
Snapshot will be disposed if symbols contains snapshot symbol (for Snapshots only).
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbols | List of CandleSymbol. |
ArgumentException | Invalid symbols parameter. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Removes existing com.dxfeed.api.events.OrderSource from subscription and set new.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
sources | List of com.dxfeed.api.events.OrderSource names. |
ArgumentException | Invalid sources parameter. |
InvalidOperationException | You try to add more than one source to subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Sets symbols to the subscription.
symbols | List of symbols. |
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
ArgumentException | Invalid symbols parameter. |
InvalidOperationException | You try to add more than one symbol to snapshot subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Sets multiple symbols to the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbols | List of CandleSymbol. |
ArgumentException | Invalid symbols parameter. |
InvalidOperationException | You try to add more than one symbol to snapshot subscription. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
static |
Invalid snapshot
|
get |
Get symbol of snapshot