dxFeed .Net API  5.8.0
dxFeed .Net API library intended to provide market data access for DX clients
Protected Member Functions | Package Functions | Static Package Functions | Package Attributes | Properties | Static Private Attributes
com.dxfeed.native.api.C Class Referenceabstract
Inheritance diagram for com.dxfeed.native.api.C:
[legend]
Collaboration diagram for com.dxfeed.native.api.C:
[legend]

Protected Member Functions

 C ()
 

Package Functions

delegate void dxf_event_listener_t (EventType event_type, IntPtr symbol, IntPtr data, int data_count, IntPtr user_data)
 
delegate void dxf_event_listener_v2_t (EventType event_type, IntPtr symbol, IntPtr data, int data_count, IntPtr event_params, IntPtr user_data)
 
delegate void dxf_conn_termination_notifier_t (IntPtr connection, IntPtr user_data)
 
delegate void dxf_conn_status_notifier_t (IntPtr connection, ConnectionStatus old_status, ConnectionStatus new_status, IntPtr user_data)
 
delegate int dxf_socket_thread_creation_notifier_t (IntPtr connection, IntPtr user_data)
 
delegate void dxf_socket_thread_destruction_notifier_t (IntPtr connection, IntPtr user_data)
 
delegate void dxf_snapshot_listener_t (IntPtr snapshotData, IntPtr userData)
 Snapshot listener prototype More...
 
delegate void dxf_price_level_book_listener_t (IntPtr price_level_book, IntPtr user_data)
 
delegate void dxf_regional_quote_listener_t (IntPtr symbol, IntPtr quote, int count, IntPtr user_data)
 
abstract int dxf_initialize_logger (string file_name, bool rewrite_file, bool show_time_zone_info, bool verbose)
 
abstract int dxf_create_connection (string address, dxf_conn_termination_notifier_t notifier, dxf_conn_status_notifier_t conn_status_notifier, dxf_socket_thread_creation_notifier_t stcn, dxf_socket_thread_destruction_notifier_t stdn, IntPtr user_data, out IntPtr connection)
 
abstract int dxf_create_connection_auth_basic (string address, string user, string password, dxf_conn_termination_notifier_t notifier, dxf_conn_status_notifier_t conn_status_notifier, dxf_socket_thread_creation_notifier_t stcn, dxf_socket_thread_destruction_notifier_t stdn, IntPtr user_data, out IntPtr connection)
 
abstract int dxf_create_connection_auth_bearer (string address, string token, dxf_conn_termination_notifier_t notifier, dxf_conn_status_notifier_t conn_status_notifier, dxf_socket_thread_creation_notifier_t stcn, dxf_socket_thread_destruction_notifier_t stdn, IntPtr user_data, out IntPtr connection)
 
abstract int dxf_create_connection_auth_custom (string address, string authscheme, string authdata, dxf_conn_termination_notifier_t notifier, dxf_conn_status_notifier_t conn_status_notifier, dxf_socket_thread_creation_notifier_t stcn, dxf_socket_thread_destruction_notifier_t stdn, IntPtr user_data, out IntPtr connection)
 
abstract int dxf_close_connection (IntPtr connection)
 
abstract int dxf_create_subscription (IntPtr connection, EventType event_types, out IntPtr subscription)
 
abstract int dxf_create_subscription_timed (IntPtr connection, EventType event_types, Int64 time, out IntPtr subscription)
 
abstract int dxf_close_subscription (IntPtr subscription)
 
abstract int dxf_add_symbol (IntPtr subscription, String symbol)
 
abstract int dxf_add_symbols (IntPtr subscription, string[] symbols, int count)
 
abstract int dxf_add_candle_symbol (IntPtr subscription, IntPtr candle_attributes)
 
abstract int dxf_remove_candle_symbol (IntPtr subscription, IntPtr candle_attributes)
 
abstract int dxf_remove_symbol (IntPtr subcription, string symbol)
 
abstract int dxf_remove_symbols (IntPtr subscription, string[] symbols, int count)
 
abstract int dxf_get_symbols (IntPtr subscription, out IntPtr symbols, out int count)
 
abstract int dxf_set_symbols (IntPtr subscription, string[] symbols, int count)
 
abstract int dxf_clear_symbols (IntPtr subscription)
 
abstract int dxf_attach_event_listener (IntPtr subscription, dxf_event_listener_t event_listener, IntPtr user_data)
 
abstract int dxf_detach_event_listener (IntPtr subscription, dxf_event_listener_t listener)
 
abstract int dxf_attach_event_listener_v2 (IntPtr subscription, dxf_event_listener_v2_t event_listener, IntPtr user_data)
 
abstract int dxf_detach_event_listener_v2 (IntPtr subscription, dxf_event_listener_v2_t listener)
 
abstract int dxf_get_subscription_event_types (IntPtr subscription, out int event_types)
 
abstract int dxf_get_last_event (IntPtr connection, int event_type, string symbol, IntPtr event_data)
 
abstract int dxf_get_last_error (out int error_code, out IntPtr error_descr)
 
abstract int dxf_set_order_source (IntPtr subscription, byte[] source)
 
abstract int dxf_add_order_source (IntPtr subscription, byte[] source)
 
abstract int dxf_create_candle_symbol_attributes (string base_symbol, char exchange_code, double period_value, int period_type, int price, int session, int alignment, out IntPtr candle_attributes)
 
abstract int dxf_delete_candle_symbol_attributes (IntPtr candle_attributes)
 
abstract int dxf_create_snapshot (IntPtr connection, int event_id, string symbol, byte[] source, Int64 time, out IntPtr snapshot)
 
abstract int dxf_create_order_snapshot (IntPtr connection, string symbol, byte[] source, Int64 time, out IntPtr snapshot)
 
abstract int dxf_create_candle_snapshot (IntPtr connection, IntPtr candle_attributes, Int64 time, out IntPtr snapshot)
 
abstract int dxf_close_snapshot (IntPtr snapshot)
 
abstract int dxf_attach_snapshot_listener (IntPtr snapshot, dxf_snapshot_listener_t snapshotListener, IntPtr userData)
 
abstract int dxf_detach_snapshot_listener (IntPtr snapshot, dxf_snapshot_listener_t snapshotListener)
 
abstract int dxf_get_snapshot_symbol (IntPtr snapshot, out IntPtr symbol)
 
abstract int dxf_write_raw_data (IntPtr connection, byte[] raw_file_name)
 
abstract int dxf_get_connection_properties_snapshot (IntPtr connection, out IntPtr properties, out int count)
 
abstract int dxf_free_connection_properties_snapshot (IntPtr properties, int count)
 
abstract int dxf_get_current_connected_address (IntPtr connection, out IntPtr address)
 
abstract int dxf_get_current_connection_status (IntPtr connection, out ConnectionStatus status)
 
abstract int dxf_free (IntPtr pointer)
 
abstract int dxf_create_regional_book (IntPtr connection, string symbol, out IntPtr book)
 
abstract int dxf_close_regional_book (IntPtr book)
 
abstract int dxf_attach_regional_book_listener (IntPtr book, dxf_price_level_book_listener_t book_listener, IntPtr user_data)
 
abstract int dxf_detach_regional_book_listener (IntPtr book, dxf_price_level_book_listener_t book_listener)
 
abstract int dxf_attach_regional_book_listener_v2 (IntPtr book, dxf_regional_quote_listener_t listener, IntPtr user_data)
 
abstract int dxf_detach_regional_book_listener_v2 (IntPtr book, dxf_regional_quote_listener_t listener)
 

Static Package Functions

static void CheckOk (int returnCode)
 Helper method to check error codes Throws NativeDxException if return_code != DX_OK More...
 

Package Attributes

const int DX_OK = 1
 
const int DX_ERR = 0
 

Properties

static C Instance [get]
 

Static Private Attributes

static C instance
 
static object syncRoot = new Object()
 

Constructor & Destructor Documentation

◆ C()

com.dxfeed.native.api.C.C ( )
inlineprotected

Member Function Documentation

◆ CheckOk()

static void com.dxfeed.native.api.C.CheckOk ( int  returnCode)
inlinestaticpackage

Helper method to check error codes Throws NativeDxException if return_code != DX_OK

Parameters
returnCode
Exceptions
NativeDxException

◆ dxf_add_candle_symbol()

abstract int com.dxfeed.native.api.C.dxf_add_candle_symbol ( IntPtr  subscription,
IntPtr  candle_attributes 
)
packagepure virtual

◆ dxf_add_order_source()

abstract int com.dxfeed.native.api.C.dxf_add_order_source ( IntPtr  subscription,
byte []  source 
)
packagepure virtual

◆ dxf_add_symbol()

abstract int com.dxfeed.native.api.C.dxf_add_symbol ( IntPtr  subscription,
String  symbol 
)
packagepure virtual

◆ dxf_add_symbols()

abstract int com.dxfeed.native.api.C.dxf_add_symbols ( IntPtr  subscription,
string []  symbols,
int  count 
)
packagepure virtual

◆ dxf_attach_event_listener()

abstract int com.dxfeed.native.api.C.dxf_attach_event_listener ( IntPtr  subscription,
dxf_event_listener_t  event_listener,
IntPtr  user_data 
)
packagepure virtual

◆ dxf_attach_event_listener_v2()

abstract int com.dxfeed.native.api.C.dxf_attach_event_listener_v2 ( IntPtr  subscription,
dxf_event_listener_v2_t  event_listener,
IntPtr  user_data 
)
packagepure virtual

◆ dxf_attach_regional_book_listener()

abstract int com.dxfeed.native.api.C.dxf_attach_regional_book_listener ( IntPtr  book,
dxf_price_level_book_listener_t  book_listener,
IntPtr  user_data 
)
packagepure virtual

◆ dxf_attach_regional_book_listener_v2()

abstract int com.dxfeed.native.api.C.dxf_attach_regional_book_listener_v2 ( IntPtr  book,
dxf_regional_quote_listener_t  listener,
IntPtr  user_data 
)
packagepure virtual

◆ dxf_attach_snapshot_listener()

abstract int com.dxfeed.native.api.C.dxf_attach_snapshot_listener ( IntPtr  snapshot,
dxf_snapshot_listener_t  snapshotListener,
IntPtr  userData 
)
packagepure virtual

◆ dxf_clear_symbols()

abstract int com.dxfeed.native.api.C.dxf_clear_symbols ( IntPtr  subscription)
packagepure virtual

◆ dxf_close_connection()

abstract int com.dxfeed.native.api.C.dxf_close_connection ( IntPtr  connection)
packagepure virtual

◆ dxf_close_regional_book()

abstract int com.dxfeed.native.api.C.dxf_close_regional_book ( IntPtr  book)
packagepure virtual

◆ dxf_close_snapshot()

abstract int com.dxfeed.native.api.C.dxf_close_snapshot ( IntPtr  snapshot)
packagepure virtual

◆ dxf_close_subscription()

abstract int com.dxfeed.native.api.C.dxf_close_subscription ( IntPtr  subscription)
packagepure virtual

◆ dxf_conn_status_notifier_t()

delegate void com.dxfeed.native.api.C.dxf_conn_status_notifier_t ( IntPtr  connection,
ConnectionStatus  old_status,
ConnectionStatus  new_status,
IntPtr  user_data 
)
package

◆ dxf_conn_termination_notifier_t()

delegate void com.dxfeed.native.api.C.dxf_conn_termination_notifier_t ( IntPtr  connection,
IntPtr  user_data 
)
package

◆ dxf_create_candle_snapshot()

abstract int com.dxfeed.native.api.C.dxf_create_candle_snapshot ( IntPtr  connection,
IntPtr  candle_attributes,
Int64  time,
out IntPtr  snapshot 
)
packagepure virtual

◆ dxf_create_candle_symbol_attributes()

abstract int com.dxfeed.native.api.C.dxf_create_candle_symbol_attributes ( string  base_symbol,
char  exchange_code,
double  period_value,
int  period_type,
int  price,
int  session,
int  alignment,
out IntPtr  candle_attributes 
)
packagepure virtual

◆ dxf_create_connection()

abstract int com.dxfeed.native.api.C.dxf_create_connection ( string  address,
dxf_conn_termination_notifier_t  notifier,
dxf_conn_status_notifier_t  conn_status_notifier,
dxf_socket_thread_creation_notifier_t  stcn,
dxf_socket_thread_destruction_notifier_t  stdn,
IntPtr  user_data,
out IntPtr  connection 
)
packagepure virtual

◆ dxf_create_connection_auth_basic()

abstract int com.dxfeed.native.api.C.dxf_create_connection_auth_basic ( string  address,
string  user,
string  password,
dxf_conn_termination_notifier_t  notifier,
dxf_conn_status_notifier_t  conn_status_notifier,
dxf_socket_thread_creation_notifier_t  stcn,
dxf_socket_thread_destruction_notifier_t  stdn,
IntPtr  user_data,
out IntPtr  connection 
)
packagepure virtual

◆ dxf_create_connection_auth_bearer()

abstract int com.dxfeed.native.api.C.dxf_create_connection_auth_bearer ( string  address,
string  token,
dxf_conn_termination_notifier_t  notifier,
dxf_conn_status_notifier_t  conn_status_notifier,
dxf_socket_thread_creation_notifier_t  stcn,
dxf_socket_thread_destruction_notifier_t  stdn,
IntPtr  user_data,
out IntPtr  connection 
)
packagepure virtual

◆ dxf_create_connection_auth_custom()

abstract int com.dxfeed.native.api.C.dxf_create_connection_auth_custom ( string  address,
string  authscheme,
string  authdata,
dxf_conn_termination_notifier_t  notifier,
dxf_conn_status_notifier_t  conn_status_notifier,
dxf_socket_thread_creation_notifier_t  stcn,
dxf_socket_thread_destruction_notifier_t  stdn,
IntPtr  user_data,
out IntPtr  connection 
)
packagepure virtual

◆ dxf_create_order_snapshot()

abstract int com.dxfeed.native.api.C.dxf_create_order_snapshot ( IntPtr  connection,
string  symbol,
byte []  source,
Int64  time,
out IntPtr  snapshot 
)
packagepure virtual

◆ dxf_create_regional_book()

abstract int com.dxfeed.native.api.C.dxf_create_regional_book ( IntPtr  connection,
string  symbol,
out IntPtr  book 
)
packagepure virtual

◆ dxf_create_snapshot()

abstract int com.dxfeed.native.api.C.dxf_create_snapshot ( IntPtr  connection,
int  event_id,
string  symbol,
byte []  source,
Int64  time,
out IntPtr  snapshot 
)
packagepure virtual

◆ dxf_create_subscription()

abstract int com.dxfeed.native.api.C.dxf_create_subscription ( IntPtr  connection,
EventType  event_types,
out IntPtr  subscription 
)
packagepure virtual

◆ dxf_create_subscription_timed()

abstract int com.dxfeed.native.api.C.dxf_create_subscription_timed ( IntPtr  connection,
EventType  event_types,
Int64  time,
out IntPtr  subscription 
)
packagepure virtual

◆ dxf_delete_candle_symbol_attributes()

abstract int com.dxfeed.native.api.C.dxf_delete_candle_symbol_attributes ( IntPtr  candle_attributes)
packagepure virtual

◆ dxf_detach_event_listener()

abstract int com.dxfeed.native.api.C.dxf_detach_event_listener ( IntPtr  subscription,
dxf_event_listener_t  listener 
)
packagepure virtual

◆ dxf_detach_event_listener_v2()

abstract int com.dxfeed.native.api.C.dxf_detach_event_listener_v2 ( IntPtr  subscription,
dxf_event_listener_v2_t  listener 
)
packagepure virtual

◆ dxf_detach_regional_book_listener()

abstract int com.dxfeed.native.api.C.dxf_detach_regional_book_listener ( IntPtr  book,
dxf_price_level_book_listener_t  book_listener 
)
packagepure virtual

◆ dxf_detach_regional_book_listener_v2()

abstract int com.dxfeed.native.api.C.dxf_detach_regional_book_listener_v2 ( IntPtr  book,
dxf_regional_quote_listener_t  listener 
)
packagepure virtual

◆ dxf_detach_snapshot_listener()

abstract int com.dxfeed.native.api.C.dxf_detach_snapshot_listener ( IntPtr  snapshot,
dxf_snapshot_listener_t  snapshotListener 
)
packagepure virtual

◆ dxf_event_listener_t()

delegate void com.dxfeed.native.api.C.dxf_event_listener_t ( EventType  event_type,
IntPtr  symbol,
IntPtr  data,
int  data_count,
IntPtr  user_data 
)
package

◆ dxf_event_listener_v2_t()

delegate void com.dxfeed.native.api.C.dxf_event_listener_v2_t ( EventType  event_type,
IntPtr  symbol,
IntPtr  data,
int  data_count,
IntPtr  event_params,
IntPtr  user_data 
)
package

◆ dxf_free()

abstract int com.dxfeed.native.api.C.dxf_free ( IntPtr  pointer)
packagepure virtual

◆ dxf_free_connection_properties_snapshot()

abstract int com.dxfeed.native.api.C.dxf_free_connection_properties_snapshot ( IntPtr  properties,
int  count 
)
packagepure virtual

◆ dxf_get_connection_properties_snapshot()

abstract int com.dxfeed.native.api.C.dxf_get_connection_properties_snapshot ( IntPtr  connection,
out IntPtr  properties,
out int  count 
)
packagepure virtual

◆ dxf_get_current_connected_address()

abstract int com.dxfeed.native.api.C.dxf_get_current_connected_address ( IntPtr  connection,
out IntPtr  address 
)
packagepure virtual

◆ dxf_get_current_connection_status()

abstract int com.dxfeed.native.api.C.dxf_get_current_connection_status ( IntPtr  connection,
out ConnectionStatus  status 
)
packagepure virtual

◆ dxf_get_last_error()

abstract int com.dxfeed.native.api.C.dxf_get_last_error ( out int  error_code,
out IntPtr  error_descr 
)
packagepure virtual

◆ dxf_get_last_event()

abstract int com.dxfeed.native.api.C.dxf_get_last_event ( IntPtr  connection,
int  event_type,
string  symbol,
IntPtr  event_data 
)
packagepure virtual

◆ dxf_get_snapshot_symbol()

abstract int com.dxfeed.native.api.C.dxf_get_snapshot_symbol ( IntPtr  snapshot,
out IntPtr  symbol 
)
packagepure virtual

◆ dxf_get_subscription_event_types()

abstract int com.dxfeed.native.api.C.dxf_get_subscription_event_types ( IntPtr  subscription,
out int  event_types 
)
packagepure virtual

◆ dxf_get_symbols()

abstract int com.dxfeed.native.api.C.dxf_get_symbols ( IntPtr  subscription,
out IntPtr  symbols,
out int  count 
)
packagepure virtual

◆ dxf_initialize_logger()

abstract int com.dxfeed.native.api.C.dxf_initialize_logger ( string  file_name,
bool  rewrite_file,
bool  show_time_zone_info,
bool  verbose 
)
packagepure virtual

◆ dxf_price_level_book_listener_t()

delegate void com.dxfeed.native.api.C.dxf_price_level_book_listener_t ( IntPtr  price_level_book,
IntPtr  user_data 
)
package

◆ dxf_regional_quote_listener_t()

delegate void com.dxfeed.native.api.C.dxf_regional_quote_listener_t ( IntPtr  symbol,
IntPtr  quote,
int  count,
IntPtr  user_data 
)
package

◆ dxf_remove_candle_symbol()

abstract int com.dxfeed.native.api.C.dxf_remove_candle_symbol ( IntPtr  subscription,
IntPtr  candle_attributes 
)
packagepure virtual

◆ dxf_remove_symbol()

abstract int com.dxfeed.native.api.C.dxf_remove_symbol ( IntPtr  subcription,
string  symbol 
)
packagepure virtual

◆ dxf_remove_symbols()

abstract int com.dxfeed.native.api.C.dxf_remove_symbols ( IntPtr  subscription,
string []  symbols,
int  count 
)
packagepure virtual

◆ dxf_set_order_source()

abstract int com.dxfeed.native.api.C.dxf_set_order_source ( IntPtr  subscription,
byte []  source 
)
packagepure virtual

◆ dxf_set_symbols()

abstract int com.dxfeed.native.api.C.dxf_set_symbols ( IntPtr  subscription,
string []  symbols,
int  count 
)
packagepure virtual

◆ dxf_snapshot_listener_t()

delegate void com.dxfeed.native.api.C.dxf_snapshot_listener_t ( IntPtr  snapshotData,
IntPtr  userData 
)
package

Snapshot listener prototype

Parameters
snapshotDatapointer to the received snapshot data
userDatapointer to user struct, use NULL by default

◆ dxf_socket_thread_creation_notifier_t()

delegate int com.dxfeed.native.api.C.dxf_socket_thread_creation_notifier_t ( IntPtr  connection,
IntPtr  user_data 
)
package

◆ dxf_socket_thread_destruction_notifier_t()

delegate void com.dxfeed.native.api.C.dxf_socket_thread_destruction_notifier_t ( IntPtr  connection,
IntPtr  user_data 
)
package

◆ dxf_write_raw_data()

abstract int com.dxfeed.native.api.C.dxf_write_raw_data ( IntPtr  connection,
byte []  raw_file_name 
)
packagepure virtual

Field Documentation

◆ DX_ERR

const int com.dxfeed.native.api.C.DX_ERR = 0
package

◆ DX_OK

const int com.dxfeed.native.api.C.DX_OK = 1
package

◆ instance

C com.dxfeed.native.api.C.instance
staticprivate

◆ syncRoot

object com.dxfeed.native.api.C.syncRoot = new Object()
staticprivate

Property Documentation

◆ Instance

C com.dxfeed.native.api.C.Instance
staticgetpackage

The documentation for this class was generated from the following file: