Class Handler
CME Drop Copy Handler.
Implements
Inherited Members
Namespace: OnixS.CmeDropCopyHandler
Assembly: OnixS.CmeDropCopyHandler.dll
Syntax
public class Handler : IDisposable
Constructors
Handler(Session)
Handler constructor.
Declaration
public Handler(Session session)
Parameters
Type | Name | Description |
---|---|---|
Session | session | Fix session. |
Handler(string, string, string)
Handler constructor.
Declaration
public Handler(string senderCompId, string senderSubId, string targetSubId)
Parameters
Type | Name | Description |
---|---|---|
string | senderCompId | Fix session SenderCompID |
string | senderSubId | Fix session SenderSubID |
string | targetSubId | Fix session TargetSubID |
Handler(string, string, string, string, string)
Handler constructor.
Declaration
public Handler(string senderCompId, string targetCompId, string senderSubId, string targetSubId, string senderLocationId)
Parameters
Type | Name | Description |
---|---|---|
string | senderCompId | Fix session SenderCompID |
string | targetCompId | Fix session TargetCompID |
string | senderSubId | Fix session SenderSubID |
string | targetSubId | Fix session TargetSubID |
string | senderLocationId | Fix session SenderLocationID |
Fields
ApplicationSystemName
Application System Name
Declaration
public const string ApplicationSystemName = "OnixS Trading System"
Field Value
Type | Description |
---|---|
string |
ApplicationSystemVendor
Application System Vendor
Declaration
public const string ApplicationSystemVendor = "OnixS"
Field Value
Type | Description |
---|---|
string |
ApplicationSystemVersion
Application System Version
Declaration
public static readonly string ApplicationSystemVersion
Field Value
Type | Description |
---|---|
string |
Properties
DialectFile
Gets or sets path of dialect file.
Declaration
public static string DialectFile { get; set; }
Property Value
Type | Description |
---|---|
string |
FixMessagesLogger
Gets logger for tracing FIX messages.
Declaration
public static ILogger FixMessagesLogger { get; }
Property Value
Type | Description |
---|---|
ILogger |
HandlerLogger
Gets logger for tracing handler messages.
Declaration
public static ILogger HandlerLogger { get; }
Property Value
Type | Description |
---|---|
ILogger |
LicenseExpirationDate
Gets license expiration date
Declaration
public DateTime LicenseExpirationDate { get; }
Property Value
Type | Description |
---|---|
DateTime |
LicensePath
Gets or sets license directory.
Declaration
public static string LicensePath { get; set; }
Property Value
Type | Description |
---|---|
string |
ProcessNextExpectedSeqNumFromCmeLogout
If true will set the session outgoing sequence number to the NextExpectedMsgSeqNum (tag 789) field value from the CME Logout message.
Declaration
public bool ProcessNextExpectedSeqNumFromCmeLogout { get; set; }
Property Value
Type | Description |
---|---|
bool |
Session
Gets underlying Fix Session.
Declaration
public Session Session { get; }
Property Value
Type | Description |
---|---|
Session |
StorageDirectory
Gets or sets log directory.
Declaration
public static string StorageDirectory { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
CreateLogonMessage(string, string)
Creates logon FIX message.
Declaration
public Message CreateLogonMessage(string accessKeyID, string secretKey)
Parameters
Type | Name | Description |
---|---|---|
string | accessKeyID | CME access key ID. |
string | secretKey | CME secret key. |
Returns
Type | Description |
---|---|
Message | Created logon FIX message. |
Dispose()
Implement IDisposable.
Declaration
public void Dispose()
Dispose(bool)
Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed. If disposing equals false, the method has been called by the runtime from inside the finalizer and you should not reference other objects. Only unmanaged resources can be disposed.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | True if called from user code. |
Logon(string, int, string, string)
Logon to CME drop copy session.
Declaration
public void Logon(string host, int port, string accessKeyID, string secretKey)
Parameters
Type | Name | Description |
---|---|---|
string | host | CME session host |
int | port | CME session port |
string | accessKeyID | CME access key ID. |
string | secretKey | CME secret key. |
Logout()
Logout from CME drop copy session.
Declaration
public void Logout()
Reset()
Reset session sequence numbers.
NOTE: Should be called in disconnected state only.
Declaration
public void Reset()
Events
Error
Raised when error occurs.
Declaration
public event EventHandler<ErrorEventArgs> Error
Event Type
Type | Description |
---|---|
EventHandler<ErrorEventArgs> |
ExecutionReportReceived
Raised when Execution Report message received.
Declaration
public event EventHandler<MessageEventArgs> ExecutionReportReceived
Event Type
Type | Description |
---|---|
EventHandler<MessageEventArgs> |
MassOrderCancelReportReceived
Raised when Mass Order Cancel Report message received.
Declaration
public event EventHandler<MessageEventArgs> MassOrderCancelReportReceived
Event Type
Type | Description |
---|---|
EventHandler<MessageEventArgs> |
Warning
Raised when warning occurs.
Declaration
public event EventHandler<WarningEventArgs> Warning
Event Type
Type | Description |
---|---|
EventHandler<WarningEventArgs> |