BuySellGrid
StockSharp.Xaml
Controle de tabela, contendo conjunto de BuySellPanel.
Herda de: UserControl
Implementa: IAsyncPersistable, IComponentConnector
Construtores
BuySellGrid
public BuySellGrid()
buySellGrid = BuySellGrid()
Inicializa uma nova instância do BuySellGrid.
Propriedades
MarketDataProvider
public IMarketDataProvider MarketDataProvider { get; set; }
value = buySellGrid.MarketDataProvider
buySellGrid.MarketDataProvider = value
O fornecedor de dados de mercado.
Portfolios
public PortfolioDataSource Portfolios { get; set; }
value = buySellGrid.Portfolios
buySellGrid.Portfolios = value
Portfolios disponíveis.
SecurityProvider
public ISecurityProvider SecurityProvider { get; set; }
value = buySellGrid.SecurityProvider
buySellGrid.SecurityProvider = value
O fornecedor de informações sobre instrumentos.
Métodos
AddPanel
public BuySellPanel AddPanel(Security security)
result = buySellGrid.AddPanel(security)
Adicionar painel.
- security
- Instrumento financeiro.
Retorna: Painel de operações de compra/venda.
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
Retorna: Task
RemovePanel
public void RemovePanel(BuySellPanel panel)
buySellGrid.RemovePanel(panel)
Remover painel.
- panel
- Painel de operações de compra/venda.
SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = buySellGrid.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Retorna: Task
Eventos
OrderRegistering
public event Action<Security, Portfolio, Sides, decimal, decimal> OrderRegistering
buySellGrid.OrderRegistering += handler
O evento de registo da ordem.
PanelAdded
public event Action<BuySellPanel> PanelAdded
buySellGrid.PanelAdded += handler
Evento adicionado pelo painel.
PanelRemoved
public event Action<BuySellPanel> PanelRemoved
buySellGrid.PanelRemoved += handler
Evento removido pelo painel.