dxFeed .Net API
5.8.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 new connection More... | |
NativeConnection (string address, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates new connection More... | |
NativeConnection (string address, System.Net.NetworkCredential credential, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates new connection. More... | |
NativeConnection (string address, string token, Action< IDxConnection > disconnectListener) | |
Creates new connection. More... | |
NativeConnection (string address, string token, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates new connection. More... | |
NativeConnection (string address, string authscheme, string authdata, Action< IDxConnection > disconnectListener, Action< IDxConnection, ConnectionStatus, ConnectionStatus > connectionStatusListener) | |
Creates new connection. More... | |
void | Disconnect () |
Disconnect from the server More... | |
IDxSubscription | CreateSubscription (EventType type, IDxEventListener listener) |
Create event subscription. More... | |
IDxSubscription | CreateSubscription (DateTime? time, IDxCandleListener listener) |
Create candle event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, long time, IDxEventListener listener) |
Create time event subscription. More... | |
IDxSubscription | CreateSubscription (EventType type, DateTime? time, IDxEventListener listener) |
Create time event subscription. More... | |
IDxSubscription | CreateSnapshotSubscription (Int64 time, IDxSnapshotListener listener) |
Creates snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (DateTime? time, IDxSnapshotListener listener) |
Creates snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (EventType eventType, Int64 time, IDxSnapshotListener listener) |
Creates snapshot subscription More... | |
IDxSubscription | CreateSnapshotSubscription (EventType eventType, DateTime? time, IDxSnapshotListener listener) |
Creates snapshot subscription More... | |
IDxSubscription | CreateOrderViewSubscription (IDxOrderViewListener listener) |
Creates Order View subscription More... | |
IDxRegionalBook | CreateRegionalBook (string symbol, IDxRegionalBookListener book_listener, IDxQuoteListener quote_listener) |
Creates regional book More... | |
void | WriteRawData (string rawFileName) |
Add dumping raw data of incoming traffic of connection into specific file More... | |
void | Dispose () |
Package Functions | |
void | RemoveSubscription (IDxSubscription subscription) |
Package Attributes | |
IntPtr | Handler => handler |
Properties | |
IDictionary< string, string > | Properties [get] |
string | ConnectedAddress [get] |
ConnectionStatus | Status [get] |
![]() | |
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 |
Private Member Functions | |
void | OnDisconnect (IntPtr connection, IntPtr userData) |
void | ConnectionStatusChangeHandler (IntPtr connection, ConnectionStatus oldStatus, ConnectionStatus newStatus, IntPtr userData) |
int | OnNativeCreate (IntPtr connection, IntPtr userData) |
Private Attributes | |
IntPtr | handler = IntPtr.Zero |
readonly C.dxf_conn_termination_notifier_t | termination_notifier |
readonly C.dxf_conn_status_notifier_t | connectionStatusChangeHandler |
readonly C.dxf_socket_thread_creation_notifier_t | creationNotifier |
readonly Action< IDxConnection > | disconnectListener |
readonly Action< IDxConnection, ConnectionStatus, ConnectionStatus > | connectionStatusListener |
readonly ISet< IDxSubscription > | subscriptions = new HashSet<IDxSubscription>() |
Class provides operations with event subscription
|
inline |
Creates new connection
address | server address to connect |
disconnectListener | listener will be called when the connection is interrupted |
DxException |
|
inline |
Creates new connection
address | server address to connect |
disconnectListener | listener will be called when the connection is interrupted |
connectionStatusListener | listener will be called when the connection status is changed |
DxException |
|
inline |
Creates new connection.
address | Server address to connect. |
credential | User name and password to server access. |
disconnectListener | Listener will be called when the connection is interrupted. |
connectionStatusListener | listener will be called when the connection status is changed |
DxException | Create connection failed. |
|
inline |
Creates new connection.
address | Server address to connect. |
token | Bearer scheme token to server access. |
disconnectListener | Listener will be called when the connection is interrupted. |
DxException | Create connection failed. |
|
inline |
Creates new connection.
address | Server address to connect. |
token | Bearer scheme token to server access. |
disconnectListener | Listener will be called when the connection is interrupted. |
connectionStatusListener | listener will be called when the connection status is changed |
DxException | Create connection failed. |
|
inline |
Creates new connection.
address | Server address to connect. |
authscheme | The authorization scheme. |
authdata | The authorization data. |
disconnectListener | Listener will be called when the connection is interrupted. |
connectionStatusListener | listener will be called when the connection status is changed |
DxException | Create connection failed. |
|
inlineprivate |
|
inline |
Creates Order View subscription
listener |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates regional book
symbol | Single symbol name |
book_listener | Regional book changes listener. Null is allowed. |
quote_listener | Quotes listener. Null is allowed. |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates snapshot subscription
time | Time in the past - number of milliseconds from 1.1.1970 (unix time) |
listener | snapshot listener callback |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates snapshot subscription
time | Date time in the past |
listener | snapshot listener callback |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates snapshot subscription
eventType | Single event type. |
time | Time in the past - number of milliseconds from 1.1.1970 (unix time) |
listener | snapshot listener callback |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Creates snapshot subscription
eventType | Single event type. |
time | Date time in the past |
listener | snapshot listener callback |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Create event subscription.
type | Event type. |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Create candle event subscription.
time | Date time in the past. |
listener | Candle listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
Create time event subscription.
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 |
Create time event subscription.
type | Event type. |
time | Date time in the past. |
listener | Event listener callback. |
ArgumentNullException | Listener is null. |
DxException |
Implements com.dxfeed.api.IDxConnection.
|
inline |
|
inline |
delegate void com.dxfeed.native.NativeConnection.OnCreationEventHandler | ( | object | sender, |
EventArgs | e | ||
) |
|
inlineprivate |
|
inlineprivate |
|
inlinepackage |
|
inline |
Add dumping raw data of incoming traffic of connection into specific file
rawFileName | file name for raw data |
ArgumentException | Invalid argument rawFileName |
NativeDxException |
Implements com.dxfeed.api.IDxConnection.
|
private |
|
private |
|
private |
|
private |
|
private |
|
package |
|
private |
|
private |
|
get |
|
get |
|
get |
OnCreationEventHandler com.dxfeed.native.NativeConnection.OnCreation |