C# 클래스 XTAPI_Samples.frmSubmitOrder

SubmitOrder This example demonstrates using the XTAPI to submit an order. The order types available in the application are market, limit, stop market and stop limit.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: tradingtechnologies/CodeSamples_XTAPI_CSharp

공개 메소드들

메소드 설명
frmSubmitOrder ( ) : System

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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
AboutMenuItem_Click ( object sender, System e ) : void

Display the About dialog box.

BuyButton_Click ( object sender, System e ) : void

This method 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 method 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.

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. Available customer names are populated, the TTOrderSet is opened and the order entry items are enabled

m_TTInstrNotify_OnNotifyUpdate ( XTAPI pNotify, XTAPI pInstr ) : void

This function is called when an instrument update occurs (i.e. LTP changes).

orderTypeComboBox_SelectedIndexChanged ( object sender, System e ) : void

This function enables and disables the appropriate text boxes on the user interface.

메소드 상세

Dispose() 보호된 메소드

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

frmSubmitOrder() 공개 메소드

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