C# Класс XTAPI_Samples.frmPriceUpdateDepth

PriceUpdateDepth This example demonstrates using the XTAPI to retrieve market depth data from a single instrument. The TTDropHandler object is used to resolve an instrument dragged and dropped from the X_TRADER Market Grid. Bid and ask depth size can be selected as well as enabling or disabling depth updates. The default level is set to "0" which means that all available depth will be displayed. Note: The maximum level of depth can differ by exchange.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект

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

Метод Описание
frmPriceUpdateDepth ( ) : System

Upon the application form loading, the TTDropHandler 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.

InitializeComponent ( ) : void

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

Main ( ) : void
askDepthComboBox_SelectedIndexChanged ( object sender, System e ) : void

This function constructs the TTInstrObj AskDepth() property based on the user selected ask depth.

bidDepthComboBox_SelectedIndexChanged ( object sender, System e ) : void

This function constructs the TTInstrObj BidDepth() property based on the user selected bid depth.

enableDepthCheckBox_CheckedChanged ( object sender, System e ) : void

TThis function enables or disables the Depth Updates based on user selection.

m_TTDropHandler_OnNotifyDrop ( ) : void

This function is called when an instrument is 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.

pNotify_OnNotifyDepthData ( XTAPI pNotify, XTAPI pInstr ) : void

This function displays is called for every change to the instrument depth.

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

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

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

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

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