BuySellGrid

StockSharp.Xaml

Control de mesa, conteniendo el conjunto de BuySellPanel.

Hereda de: UserControl

Implementa: IAsyncPersistable, IComponentConnector

Constructores

BuySellGrid
public BuySellGrid()
buySellGrid = BuySellGrid()

Inicia una nueva instancia de la BuySellGrid.

Propiedades

MarketDataProvider
public IMarketDataProvider MarketDataProvider { get; set; }
value = buySellGrid.MarketDataProvider
buySellGrid.MarketDataProvider = value

El proveedor de datos del mercado.

Panels
public IEnumerable<BuySellPanel> Panels { get; }
value = buySellGrid.Panels

Paneles.

Portfolios
public PortfolioDataSource Portfolios { get; set; }
value = buySellGrid.Portfolios
buySellGrid.Portfolios = value

carteras disponibles.

SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = buySellGrid.SecurityProvider
buySellGrid.SecurityProvider = value

El proveedor de información sobre instrumentos.

Métodos

AddPanel
public BuySellPanel AddPanel(Security security)
result = buySellGrid.AddPanel(security)

Añadir panel.

security
instrumento financiero.

Devuelve: Panel de operaciones de compra/venta.

ClearPanels
public void ClearPanels()
buySellGrid.ClearPanels()

Quitar todos BuySellPanel@.

InitializeComponent
public void InitializeComponent()
buySellGrid.InitializeComponent()

InitializeComponent

LoadAsync
public Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = buySellGrid.LoadAsync(storage, cancellationToken)

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Devuelve: Task

RemovePanel
public void RemovePanel(BuySellPanel panel)
buySellGrid.RemovePanel(panel)

Quitar el panel.

panel
Panel de operaciones de compra/venta.
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = buySellGrid.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Devuelve: Task

Eventos

OrderRegistering
public event Action<Security, Portfolio, Sides, decimal, decimal> OrderRegistering
buySellGrid.OrderRegistering += handler

El evento de registro de pedidos.

PanelAdded
public event Action<BuySellPanel> PanelAdded
buySellGrid.PanelAdded += handler

Panel añadido evento.

PanelRemoved
public event Action<BuySellPanel> PanelRemoved
buySellGrid.PanelRemoved += handler

Panel eliminado evento.