dxFeed .Net API
7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Class provides native event subscription More...
Public Member Functions | |
NativeSubscription (NativeConnection connection, EventType eventType, EventSubscriptionFlag eventSubscriptionFlags, IDxEventListener listener) | |
Creates the new event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, IDxEventListener listener) | |
Creates the new event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, long time, EventSubscriptionFlag eventSubscriptionFlags, IDxEventListener listener) | |
Creates the new time event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, long time, IDxEventListener listener) | |
Creates the new time event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, DateTime time, EventSubscriptionFlag eventSubscriptionFlags, IDxEventListener listener) | |
Creates the new time event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, DateTime time, IDxEventListener listener) | |
Creates the new time event subscription. More... | |
NativeSubscription (NativeConnection connection, DateTime? time, EventSubscriptionFlag eventSubscriptionFlags, IDxCandleListener listener) | |
Creates the new Candle event subscription. For rest events use another constructor. More... | |
NativeSubscription (NativeConnection connection, DateTime? time, IDxCandleListener listener) | |
Creates the new Candle event subscription. For rest events use another constructor. More... | |
void | Dispose () |
Disposes the subscription More... | |
void | AddSymbol (string symbol) |
void | AddSymbol (CandleSymbol symbol) |
Adds a candle symbol to the subscription. More... | |
void | AddSymbols (params string[] symbols) |
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 of the subscription. More... | |
void | SetSymbols (params CandleSymbol[] symbols) |
Sets symbols of the subscription. More... | |
void | Clear () |
unsafe IList< string > | GetSymbols () |
Returns all symbols of the subscription. More... | |
void | AddSource (params string[] sources) |
Adds a OrderSource to the subscription. More... | |
void | SetSource (params string[] sources) |
Removes the existing OrderSource from the subscription and sets the new one. More... | |
Class provides native event subscription
|
inline |
Creates the new event subscription.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | native connection pointer |
eventType | type of event to create |
eventSubscriptionFlags | event subscription flags |
listener | event listener |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new event subscription.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | native connection pointer |
eventType | type of event to create |
listener | event listener |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new time event subscription.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
eventType | Type of event to create. |
time | Unix time stamp (the number of milliseconds from 1.1.1970) |
eventSubscriptionFlags | event subscription flags |
listener | Event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new time event subscription.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
eventType | Type of event to create. |
time | Unix time stamp (the number of milliseconds from 1.1.1970) |
listener | Event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new time event subscription.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
eventType | Type of event to create. |
time | Time to getting events from. |
eventSubscriptionFlags | event subscription flags |
listener | Event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new time event subscription.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
eventType | Type of event to create. |
time | Time to getting events from. |
listener | Event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new Candle event subscription. For rest events use another constructor.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
time | Date time in the past. |
eventSubscriptionFlags | event subscription flags |
listener | Candle event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Creates the new Candle event subscription. For rest events use another constructor.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
connection | Native connection pointer. |
time | Date time in the past. |
listener | Candle event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Adds a OrderSource to the subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
sources | List of 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.
A wildcard symbol "*" will replace all symbols: there will be an unsubscription from messages on all current symbols and a subscription to "*". The subscription type will be changed to STREAM If there is already a subscription to "*", then nothing will happen
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.
First met the "*" symbol (wildcard) will overwrite all other symbols: there will be an unsubscription from messages on all current symbols and a subscription to "*". The subscription type will be changed to STREAM If there is already a subscription to "*", then nothing will happen.
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 |
Removes 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 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.
First met the "*" symbol (wildcard) will remove all symbols: there will be an unsubscription from messages on all current symbols. If there is already a subscription to "*" and the symbols to remove are not contain a "*", then nothing will happen.
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 the existing OrderSource from the subscription and sets the new one.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
sources | List of 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 of 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 |
Sets symbols of 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.