dxFeed .Net API
7.1.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Class provides operations with event subscription More...
Public Member Functions | |
delegate void | OnCreationEventHandler (object sender, EventArgs e) |
NativeConnection (string address, Action< IDxConnection > disconnectListener) | |
Creates the new connection More... | |
NativeConnection (string address, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates the new connection More... | |
NativeConnection (string address, System.Net.NetworkCredential credential, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates the new connection. More... | |
NativeConnection (string address, string token, Action< IDxConnection > disconnectListener) | |
Creates the new connection. More... | |
NativeConnection (string address, string token, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates the new connection. More... | |
NativeConnection (string address, string authScheme, string authData, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates the new connection. More... | |
void | SetOnServerHeartbeatHandler (OnServerHeartbeatHandler handler) |
Sets a handler that will be called when a server heartbeat arrives and contains non empty payload More... | |
void | Disconnect () |
Disconnect from the server More... | |
IDxSubscription | CreateSubscription (EventType type, EventSubscriptionFlag eventSubscriptionFlags, IDxEventListener listener) |
Creates an event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, IDxEventListener listener) |
Creates an event subscription. More... | |
IDxSubscription | CreateSubscription (DateTime? time, EventSubscriptionFlag eventSubscriptionFlags, IDxCandleListener listener) |
Creates a candle event subscription. More... | |
IDxSubscription | CreateSubscription (DateTime? time, IDxCandleListener listener) |
Creates a candle event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, long time, EventSubscriptionFlag eventSubscriptionFlags, IDxEventListener listener) |
Creates a time event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, long time, IDxEventListener listener) |
Creates a time event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, DateTime? time, EventSubscriptionFlag eventSubscriptionFlags, IDxEventListener listener) |
Creates a time event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, DateTime? time, IDxEventListener listener) |
Creates a time event subscription. More... | |
IDxSubscription | CreateSnapshotSubscription (long time, IDxSnapshotListener listener) |
Creates a snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (DateTime? time, IDxSnapshotListener listener) |
Creates a snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (EventType eventType, long time, IDxSnapshotListener listener) |
Creates a snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (EventType eventType, DateTime? time, IDxSnapshotListener listener) |
Creates a snapshot subscription More... | |
IDxSubscription | CreateOrderViewSubscription (IDxOrderViewListener listener) |
Creates an Order View subscription More... | |
IDxRegionalBook | CreateRegionalBook (string symbol, IDxRegionalBookListener bookListener, IDxQuoteListener quoteListener) |
Creates a regional book More... | |
void | WriteRawData (string rawFileName) |
Enables the dumping raw data of incoming traffic of connection into specific file More... | |
void | Dispose () |
Disposes the connection object More... | |
![]() | |
IDxSubscription | CreateSnapshotSubscription (Int64 time, IDxSnapshotListener listener) |
Creates snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (EventType eventType, Int64 time, IDxSnapshotListener listener) |
Creates snapshot subscription More... | |
Properties | |
IDictionary< string, string > | Properties [get] |
Returns the current connection properties More... | |
string | ConnectedAddress [get] |
Returns the current connection address More... | |
ConnectionStatus | Status [get] |
Returns the current connection status More... | |
![]() | |
IDictionary< string, string > | Properties [get] |
Retrieves properties for specified connection. Properties can be changed during reconnection. So returned array is a snapshot of properties at the moment of the call. More... | |
string | ConnectedAddress [get] |
Retrieves string with current connected address in format <host>:<port> . If return value is NULL then connection is not connected (reconnection, no valid addresses, closed connection and others). More... | |
ConnectionStatus | Status [get] |
Retrieves the current connection status More... | |
Events | |
OnCreationEventHandler | OnCreation |
Class provides operations with event subscription
|
inline |
Creates the new connection
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
address | The server address to connect |
disconnectListener | The listener that will be called when the connection is interrupted |
DxException |
|
inline |
Creates the new connection
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
address | The server address to connect |
disconnectListener | The listener that will be called when the connection is interrupted |
connectionStatusListener | The listener that will be called when the connection status is changed |
DxException |
|
inline |
Creates the new connection.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
address | The server address to connect. |
credential | The user name and password to server access. |
disconnectListener | The listener that will be called when the connection is interrupted. |
connectionStatusListener | The listener that will be called when the connection status is changed |
DxException | The connection creation was failed. |
|
inline |
Creates the new connection.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
address | The Server address to connect. |
token | Bearer scheme token to server access. |
disconnectListener | The listener that will be called when the connection is interrupted. |
DxException | The connection creation was failed. |
|
inline |
Creates the new connection.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
address | Server address to connect. |
token | Bearer scheme token to server access. |
disconnectListener | The listener that will be called when the connection is interrupted. |
connectionStatusListener | The listener that will be called when the connection status is changed |
DxException | The connection creation was failed. |
|
inline |
Creates the new connection.
Don't call this constructor inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
address | The server address to connect. |
authScheme | The authorization scheme. |
authData | The authorization data. |
disconnectListener | The listener that will be called when the connection is interrupted. |
connectionStatusListener | The listener that will be called when the connection status is changed |
DxException | The connection creation was failed. |
|
inline |
Creates an Order View subscription
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
listener |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates a regional book
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
symbol | Single symbol name |
bookListener | Regional book changes listener. Null is allowed. |
quoteListener | Quotes listener. Null is allowed. |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates a snapshot subscription
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
time | Time in the past - number of milliseconds from 1.1.1970 (unix time) |
listener | snapshot listener callback |
DxException |
|
inline |
Creates a snapshot subscription
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
time | Date time in the past |
listener | snapshot listener callback |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates a snapshot subscription
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
eventType | Single event type. |
time | Time in the past - number of milliseconds from 1.1.1970 (unix time) |
listener | snapshot listener callback |
DxException |
|
inline |
Creates a snapshot subscription
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
eventType | Single event type. |
time | Date time in the past |
listener | snapshot listener callback |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates an event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
type | Event type. |
eventSubscriptionFlags | Event subscription flags |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
|
inline |
Creates an event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
type | Event type. |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates a candle event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
time | Date time in the past. |
eventSubscriptionFlags | Event subscription flags |
listener | Candle listener callback. |
ArgumentNullException | Listener is null. |
DxException |
|
inline |
Creates a candle event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
time | Date time in the past. |
listener | Candle listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates a time event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
type | Event type. |
time | Unix time stamp (the number of milliseconds from 1.1.1970) |
eventSubscriptionFlags | Event subscription flags |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
|
inline |
Creates a time event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
type | Event type. |
time | Unix time stamp (the number of milliseconds from 1.1.1970) |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates a time event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
type | Event type. |
time | Date time in the past. |
eventSubscriptionFlags | Event subscription flags |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
|
inline |
Creates a time event subscription.
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
type | Event type. |
time | Date time in the past. |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Disconnect from the server
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Disposes the connection object
Clears the subscriptions and disconnects
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
|
inline |
Sets a handler that will be called when a server heartbeat arrives and contains non empty payload
Example:
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
handler | The handler that will be called |
|
inline |
Enables the dumping raw data of incoming traffic of connection into specific file
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
rawFileName | file name for raw data |
ArgumentException | Invalid argument rawFileName |
NativeDxException |
Implements com.dxfeed.api.IDxConnection.
|
get |
Returns the current connection address
Don't use this property inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
|
get |
Returns the current connection properties
Don't call this method inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes
|
get |
Returns the current connection status
Don't use this property inside any listeners and callbacks of NativeSubscription, NativeConnection, NativeRegionalBook, NativeSnapshotSubscription classes