dxFeed .Net API
5.13.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 new native order or candle subscription on snapshot. More... | |
NativeSnapshotSubscription (NativeConnection connection, EventType eventType, long time, IDxSnapshotListener listener) | |
Creates new native snapshot subscription with specified event type. More... | |
void | Dispose () |
Dispose native snapshot subscription More... | |
void | AddSymbol (string symbol) |
Add symbol to subscription. More... | |
void | AddSymbol (CandleSymbol symbol) |
Add candle symbol to subscription. More... | |
void | AddSymbols (params string[] symbols) |
Add multiply symbols to subscription. More... | |
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 () |
IList< string > | GetSymbols () |
Get all symbols from subscription. More... | |
void | AddSource (params string[] sources) |
Add events.OrderSource to subscription. More... | |
void | SetSource (params string[] sources) |
Remove existing 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... | |
Private Member Functions | |
void | OnEvent (IntPtr snapshotDataPtr, IntPtr userData) |
Private Attributes | |
readonly IntPtr | connectionPtr |
IntPtr | snapshotPtr = InvalidSnapshot |
readonly IDxSnapshotListener | listener |
C.dxf_snapshot_listener_t | callback |
long | time = 0 |
string | source = string.Empty |
EventType | eventType = EventType.None |
NativeConnection | connection = null |
Class provides native snapshot subscription
|
inline |
Creates new native order or candle subscription on snapshot.
connection | Native connection pointer. |
time | Milliseconds time in the past. |
listener | Snapshot events listener. |
ArgumentNullException | Listener is invalid. |
|
inline |
Creates new native snapshot subscription with specified event type.
connection | Native connection pointer. |
eventType | Single event type. |
time | Milliseconds time in the past. |
listener | Snapshot events listener. |
ArgumentNullException | Listener is invalid. |
|
inline |
Add events.OrderSource to subscription.
sources | List of 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 |
Add symbol to subscription.
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.
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 |
Dispose native snapshot subscription
NativeDxSubscription |
|
inline |
Get all symbols from subscription.
DxException | Internal error. |
Implements com.dxfeed.api.IDxSubscription.
|
inlineprivate |
|
inline |
Remove multiply symbols from subscription.
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 events.OrderSource from subscription and set new.
sources | List of 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 |
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 |
|
static |
Invalid snapshot
|
private |
|
private |
|
private |
|
private |
|
get |
Get symbol of snapshot