BuySellPanel

StockSharp.Xaml

Buy/sell operations panel.

Inherits: UserControl

Implements: IAsyncPersistable, IComponentConnector

Constructors

BuySellPanel
public BuySellPanel()
buySellPanel = BuySellPanel()

Initializes a new instance of the BuySellPanel.

Properties

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

The market data provider.

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

Portfolio.

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

Available portfolios.

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

Security.

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

The provider of information about instruments.

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

Volume.

Methods

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

Returns: Task

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

Save settings.

storage
Settings storage.
cancellationToken
CancellationToken

Returns: Task

Events

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

Closing BuySellPanel event.

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

The order registration event.

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

Portfolio changed event.

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

Security changed event.