MarketDepthControl
The visual control displaying the order book with quotes (IOrderBookMessage).
Herda de: BaseGridControl
Implementa: IComponentConnector
Construtores
MarketDepthControl()
Initializes a new instance of the MarketDepthControl.
Propriedades
AllowOwnOrderDragDrop : bool
Allow own orders drag and drop.
AllowSpreadToMove : bool
Gets or sets a value indicating whether the spread is allowed to move. When , the spread can move up and down. When , the spread stays in the middle.
AnimationDuration : TimeSpan
Animation duration.
AutoUpdateFormat : bool
Automatically update format by Security). By default is on.
CancelAnimationColor : Color
Cancel animation color.
DepthData : IOrderBookMessage
Depth data for binding. Setting this property updates the order book display.
DepthSecurity : Security
Security for depth data binding.
ErrorAnimationColor : Color
Error animation color.
FillBuyAnimationColor : Color
Fill buy animation color.
FillSellAnimationColor : Color
Fill sell animation color.
FillTextAnimationColor : Color
Fill text color.
GroupRange : decimal?
Range for Decimal).
IsBidsOnTop : bool
Whether to show the bids above. The default is off.
IsOwnOrderDragging : bool
True if user is dragging an order.
MaxBuyVolume : decimal
The maximum volume of all bids.
MaxSellVolume : decimal
The maximum volume of all asks.
PriceTextFormat : string
Price format.
RegisterAnimationColor : Color
Register animation color.
RegisterOrderOn : MarketDepthExecuteOn
Execute order register trigger.
SelectedQuote : QuoteChange?
The selected quote.
ShowBoardColumn : bool
Show Board column.
ShowOwnVolumeColumns : bool
Show own volume columns.
ShowSingleVolumeColumn : bool
Show single Volume column. The default value is .
SparseRange : decimal?
Range for Int32).
UseOrderAnimations : bool
User own order state animations.
VolumeTextFormat : string
Volume format.
Métodos
CancelOrders(Func<Order, bool>)
Cancel orders that were added to this instance of MarketDepthControl. This method does not cancel orders by itself. It just notifies subscribers with CancelingOrder event.
Clear()
To clear the order book.
GetColumnIndex(GridColumn) : MarketDepthColumns
To get the column type by cell.
- column
- Column.
Retorna: The column type.
GetOrders(decimal, Sides?, OrderTypes?) : IEnumerable<Order>
Get active orders by specified criteria.
- price
- Order price.
- side
- Order side (buy or sell).
- type
- Order type.
Retorna: Found orders.
InitializeComponent()
InitializeComponent
ProcessOrder(Order, decimal, decimal, OrderStates)
To handle an order.
- order
- Order.
- price
- Order price.
- balance
- Order contracts balance.
- state
- Order state.
ProcessOrderFail(OrderFail, OrderStates)
To handle an order register/move/cancel fail.
ShowOrderFill(Sides, decimal, decimal)
Show order fill animation.
UpdateDepth(IOrderBookMessage, Security)
To update the order book.
- message
- Market depth.
- security
- Security.
Eventos
CancelingOrder : Action<Order>
Canceling order.
MovingOrder : Action<Order, decimal>
Moving order to new price.
RegisteringOrder : Action<Sides, decimal>
Registering order.
SelectedQuoteChanged : Action<QuoteChange?>
SelectedQuote changed event.
Campos
AllowOwnOrderDragDropProperty : DependencyProperty
DependencyProperty for AllowOwnOrderDragDrop.
AllowSpreadToMoveProperty : DependencyProperty
DependencyProperty for AllowSpreadToMove.
AnimationDurationProperty : DependencyProperty
Animation duration.
CancelAnimationColorProperty : DependencyProperty
Cancel animation color.
DefaultDepth : int
The maximum depth by default which is equal to 20.
DepthDataProperty : DependencyProperty
DependencyProperty for DepthData.
DepthSecurityProperty : DependencyProperty
DependencyProperty for DepthSecurity.
ErrorAnimationColorProperty : DependencyProperty
Error animation color.
FillBuyAnimationColorProperty : DependencyProperty
Fill buy animation color.
FillSellAnimationColorProperty : DependencyProperty
Fill sell animation color.
FillTextAnimationColorProperty : DependencyProperty
Fill text color.
GroupCommand : RoutedCommand
The command for group market depth.
GroupRangeProperty : DependencyProperty
DependencyProperty for GroupRange.
GroupResetCommand : RoutedCommand
The command for reset grouping market depth.
IsBidsOnTopProperty : DependencyProperty
DependencyProperty for IsBidsOnTop.
IsOwnOrderDraggingKey : DependencyPropertyKey
True if user is dragging an order.
MaxBuyVolumeProperty : DependencyProperty
DependencyProperty for MaxBuyVolume.
MaxDepthProperty : DependencyProperty
DependencyProperty for MaxDepth.
MaxSellVolumeProperty : DependencyProperty
DependencyProperty for MaxSellVolume.
MaxVolumeProperty : DependencyProperty
DependencyProperty for MaxVolume.
PriceTextFormatProperty : DependencyProperty
DependencyProperty for PriceTextFormat.
RegisterAnimationColorProperty : DependencyProperty
Register animation color.
RegisterOrderOnProperty : DependencyProperty
Execute order register trigger.
ShowBoardColumnProperty : DependencyProperty
DependencyProperty for ShowBoardColumn.
ShowOwnVolumeColumnsProperty : DependencyProperty
DependencyProperty for ShowOwnVolumeColumns.
ShowSingleVolumeColumnProperty : DependencyProperty
DependencyProperty for ShowSingleVolumeColumn.
SparseCommand : RoutedCommand
The command for sparse market depth.
SparseRangeProperty : DependencyProperty
DependencyProperty for SparseRange.
SparseResetCommand : RoutedCommand
The command for reset sparsing market depth.
UseOrderAnimationsProperty : DependencyProperty
DependencyProperty for UseOrderAnimations.
VolumeTextFormatProperty : DependencyProperty
DependencyProperty for VolumeTextFormat.