IPortfolioProvider
StockSharp.BusinessEntities
The portfolio provider interface.
Properties
Portfolios
public IEnumerable<Portfolio> Portfolios { get; }
value = iPortfolioProvider.Portfolios
Get all portfolios.
Methods
LookupByPortfolioName
public Portfolio LookupByPortfolioName(string name)
result = iPortfolioProvider.LookupByPortfolioName(name)
To get the portfolio by the code name.
- name
- Portfolio code name.
Returns: The got portfolio. If there is no portfolio by given criteria, is returned.
Events
NewPortfolio
public event Action<Portfolio> NewPortfolio
iPortfolioProvider.NewPortfolio += handler
New portfolio received.
PortfolioChanged
public event Action<Portfolio> PortfolioChanged
iPortfolioProvider.PortfolioChanged += handler
Portfolio changed.