C# Class XTAPI_Samples.frmOrderSelector

OrderSelector This example demonstrates using the XTAPI to filter the order updates using the TTOrderSelector object. Note: Separate TTOrderSet objects are created for submitting orders and receiving order updates. This is the recommended practice, as orders sent on a filtered TTOrderSet must match the filter, or will be rejected.
Inheritance: System.Windows.Forms.Form
Show file Open project: tradingtechnologies/CodeSamples_XTAPI_CSharp

Public Methods

Method Description
frmOrderSelector ( ) : System

Upon the application form loading, the TTDropHandler 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
AboutMenuItem_Click ( object sender, System e ) : void

Display the About dialog box.

BuyButton_Click ( object sender, System 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.

Main ( ) : void
SellButton_Click ( object sender, System 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.

SetSelectorButton_Click ( object sender, System e ) : void

This function configures the TTOrderSelector based on the user selected iterface items.

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

This function is called when an instrument is found after it is opened.

m_TTOrderSet_OnOrderSetUpdate ( XTAPI pOrderSet ) : void

This function is called for every order update received by the XTAPI. Note: The TTOrderTrackerObj has been deprecated in favor of the order status events, and remains in this sample for legacy code review. TT recommends monitoring orders through the events outlined in the OrderUpdate example.

Method Details

Dispose() protected method

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

frmOrderSelector() public method

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