C# Класс XTAPI_Samples.frmModifyOrder

ModifyOrder This example demonstrates using the XTAPI to modify an order. Modifications include change, cancel/replace, delete last order, delete all orders and delete a specified range of orders. Note: Deleting all orders or deleting a range of orders can include orders placed outside of the XTAPI application.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект

Открытые методы

Метод Описание
frmModifyOrder ( ) : 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 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.

InvokeDeleteButton_Click ( object sender, System e ) : void

This function is called when the Invoke button in the Delete Order group is clicked. Three ways of deleting orders are demonstrated.

InvokeModifyOrderButton_Click ( object sender, System e ) : void

This function is called when the Invoke button in the Modify Order group is clicked. The order can be either Change or Cancel/Replace.

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. The SiteOrderKey from the order submission is saved internally and pushed to the UI.

deleteOrderComboBox_SelectedIndexChanged ( object sender, System e ) : void

This function is called whenever the deleteOrder combo box is changed. The appropriate items are enabled or disabled.

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.

modifyTypeComboBox_SelectedIndexChanged ( object sender, System e ) : void

This function is called when the modify type combo box is changed. The appropriate items are enabled.

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

frmModifyOrder() публичный Метод

Upon the application form loading, the TTDropHandler, TTOrderSet, and TTInstrNotify objects are initialized, and the required events are subscribed.
public frmModifyOrder ( ) : System
Результат System