C# Class XTAPI_Samples.frmOrderUpdate

OrderUpdate This example demonstrates using the XTAPI to retrieve order status updates from the TTOrderSet. The TTDropHandler object is used to resolve an instrument dragged and dropped from the X_TRADER Market Grid.
Inheritance: System.Windows.Forms.Form
Show file Open project: tradingtechnologies/CodeSamples_XTAPI_CSharp

Public Methods

Method Description
frmOrderUpdate ( ) : System

Upon the application form loading, the TTDropHandler, TTOrderSet, and TTInstrNotify objects are initialized, and the required events are subscribed.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
BuyButton_Click ( object sender, EventArgs e ) : void

This function is called when the user clicks the buy button.

InitializeComponent ( ) : void

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

PublishEventOrderData ( XTAPI pNewOrderObj, XTAPI pOldOrderObj ) : void

Publish specific information about each order to the GUI

SellButton_Click ( object sender, EventArgs e ) : void

This function is called when the user clicks the sell button.

SendOrder ( string buySell ) : void

This function sets up the TTOrderProfile and submits the order using the TTOrderSet SendOrder method.

aboutToolStripMenuItem_Click ( object sender, EventArgs e ) : void

Display the About dialog box.

m_TTDropHandler_OnNotifyDrop ( ) : void

This function is called when one or more instruments are dragged and dropped from the Market Grid in X_TRADER.

m_TTInstrNotify_OnNotifyFound ( XTAPI pNotify, XTAPI pInstr ) : void

Called when an instrument is found after it's opened.

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_OnOrderHeld ( XTAPI pNewOrderObj, XTAPI pOldOrderObj, string sSiteOrderKey, XTAPI eOrderAction, int ordQty ) : void

Triggered when a TT Gateway receives a hold order

m_TTOrderSet_OnOrderRejected ( XTAPI pRejectedOrderObj ) : void

Triggered when the XTAPI receives an order rejection message from the exchange for an order in the order set.

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 true if managed resources should be disposed; otherwise, false.
return void

frmOrderUpdate() public method

Upon the application form loading, the TTDropHandler, TTOrderSet, and TTInstrNotify objects are initialized, and the required events are subscribed.
public frmOrderUpdate ( ) : System
return System