C# Class XTAPI_Samples.frmServerMode

ServerMode This example demonstrates using the XTAPI in Server Mode to monitor order actions. Settings EnableServerMode also requires the application to authenticate using SetUniversalLogin. Note: Server Mode allows XTAPI applications to run independent of X_TRADER. Since X_TRADER is not required, a Server Mode XTAPI application will consume it's own X_TRADER Pro license, and orders cannot be placed or modified.
Inheritance: System.Windows.Forms.Form
Show file Open project: tradingtechnologies/CodeSamples_XTAPI_CSharp

Public Methods

Method Description
frmServerMode ( ) : System

Upon the application form loading, setup the TTGate and TTOrderSet objects.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AboutMenuItem_Click ( object sender, System e ) : void

This function displays the About dialog box.

ConnectButton_Click ( object sender, System e ) : void

Retrieve the login information and connect

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Main ( ) : void
PublishEventOrderData ( string callingMethod, XTAPI pNewOrderObj, XTAPI pOldOrderObj ) : void

Publish specific information about each order to the GUI

m_TTOrderSet_OnOrderDeleted ( XTAPI pNewOrderObj, XTAPI pOldOrderObj, string sSiteOrderKey, XTAPI eOrderState, XTAPI eOrderAction, int delQty ) : void

Triggered when orders are taken out of the market.

m_TTOrderSet_OnOrderFilled ( XTAPI pNewOrderObj, XTAPI pOldOrderObj, string sSiteOrderKey, XTAPI eOrderState, int fillQty ) : void

Triggered when an order is filled

m_TTOrderSet_OnOrderSubmitted ( XTAPI pNewOrderObj, XTAPI pOldOrderObj, string sSiteOrderKey, XTAPI eOrderAction, int wrkQty, string sOrderType, string sOrderTraits ) : void

Triggered when a new order is submitted to the exchange or a held order is resubmitted.

m_TTOrderSet_OnOrderUpdated ( XTAPI pNewOrderObj, XTAPI pOldOrderObj, string sSiteOrderKey, XTAPI eOrderState, XTAPI eOrderAction, int updQty, string sOrderType, string sOrderTraits ) : void

Triggered when there is a change in the existing orders state.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

frmServerMode() public method

Upon the application form loading, setup the TTGate and TTOrderSet objects.
public frmServerMode ( ) : System
return System