BuySellPanel

StockSharp.Xaml

Painel de operações de compra/venda.

Herda de: UserControl

Implementa: IAsyncPersistable, IComponentConnector

Construtores

BuySellPanel
public BuySellPanel()
buySellPanel = BuySellPanel()

Inicializa uma nova instância do BuySellPanel.

Propriedades

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

O fornecedor de dados de mercado.

Portfolio
public Portfolio Portfolio { get; set; }
value = buySellPanel.Portfolio
buySellPanel.Portfolio = value

Portfólio.

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

Portfolios disponíveis.

Security
public Security Security { get; set; }
value = buySellPanel.Security
buySellPanel.Security = value

Instrumento financeiro.

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

O fornecedor de informações sobre instrumentos.

Volume
public decimal? Volume { get; set; }
value = buySellPanel.Volume
buySellPanel.Volume = value

Volume.

Métodos

InitializeComponent
public void InitializeComponent()
buySellPanel.InitializeComponent()

InitializeComponent

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

Load settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

SaveAsync
public Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = buySellPanel.SaveAsync(storage, cancellationToken)

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Retorna: Task

Eventos

Closed
public event Action<BuySellPanel> Closed
buySellPanel.Closed += handler

Fechando BuySellPanel event.

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

O evento de registo da ordem.

PortfolioChanged
public event Action<Portfolio, Portfolio> PortfolioChanged
buySellPanel.PortfolioChanged += handler

O Portfólio mudou de evento.

SecurityChanged
public event Action<Security, Security> SecurityChanged
buySellPanel.SecurityChanged += handler

O instrumento financeiro alterou o evento.