dxFeed .Net API
5.8.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, IDxEventListener listener) | |
Create event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, long time, IDxEventListener listener) | |
Create time event subscription. More... | |
NativeSubscription (NativeConnection connection, EventType eventType, DateTime time, IDxEventListener listener) | |
Create time event subscription. More... | |
NativeSubscription (NativeConnection connection, DateTime? time, IDxCandleListener listener) | |
Create Candle event subscription. For rest events use another constructor. More... | |
void | Dispose () |
void | AddSymbol (string symbol) |
void | AddSymbol (CandleSymbol symbol) |
Add candle symbol to subscription. More... | |
void | AddSymbols (params string[] symbols) |
void | AddSymbols (params CandleSymbol[] symbols) |
Add multiply candle symbols to subscription. More... | |
void | RemoveSymbols (params string[] symbols) |
void | RemoveSymbols (params CandleSymbol[] symbols) |
void | SetSymbols (params string[] symbols) |
Set multiply symbols to subscription. More... | |
void | SetSymbols (params CandleSymbol[] symbols) |
Set multiply symbols to subscription. More... | |
void | Clear () |
unsafe IList< string > | GetSymbols () |
Get all symbols from subscription. More... | |
void | AddSource (params string[] sources) |
Add OrderSource to subscription. More... | |
void | SetSource (params string[] sources) |
Remove existing OrderSource from subscription and set new. More... | |
Static Package Functions | |
static bool | IsCandleSymbol (string symbol) |
static bool | HasCandleSymbol (params string[] symbols) |
Private Member Functions | |
void | OnEvent (EventType eventType, IntPtr symbol, IntPtr data, int dataCount, IntPtr eventParamsPtr, IntPtr userData) |
Private Attributes | |
readonly IntPtr | connectionPtr |
IntPtr | subscriptionPtr |
readonly IDxEventListener | eventListener |
readonly C.dxf_event_listener_v2_t | callback |
readonly EventType | eventType |
NativeConnection | connection = null |
Class provides native event subscription
|
inline |
Create event subscription.
connection | native connection pointer |
eventType | type of event to create |
listener | event listener |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Create time event subscription.
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 |
Create time event subscription.
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 |
Create Candle event subscription. For rest events use another constructor.
connection | Native connection pointer. |
time | Date time in the past. |
listener | Candle event listener. |
ArgumentException | One of passed parameters is not valid. |
DxException |
|
inline |
Add OrderSource to subscription.
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 |
Add symbol to 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
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 |
Add candle symbol to subscription.
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 |
Add multiply symbols to 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.
symbols | List of symbols. |
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 |
Add multiply candle symbols to subscription.
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 subscription.
Snapshot will be IDisposable.Dispose().
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
|
inline |
Get all symbols from subscription.
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inlinestaticpackage |
|
inlinestaticpackage |
|
inlineprivate |
|
inline |
Remove multiply symbols from 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).
symbols | List of symbols. |
ArgumentException | Invalid symbols parameter. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Remove multiply symbols from subscription.
Snapshot will be disposed if symbols contains snapshot symbol (for Snapshots only).
symbols | List of CandleSymbol. |
ArgumentException | Invalid symbols parameter. |
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inline |
Remove existing OrderSource from subscription and set new.
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 |
Set multiply symbols to subscription.
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 |
Set multiply symbols to subscription.
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.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |