Interface IStoragePositionList
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
The interface for access to the position storage.
public interface IStoragePositionList : IStorageEntityList<Position>, INotifyList<Position>, INotifyCollection<Position>, IList<Position>, ISynchronizedCollection<Position>, ICollection<Position>, IEnumerable<Position>, IEnumerable, ISynchronizedCollection
- Inherited Members
- Extension Methods
Methods
GetPosition(Portfolio, Security, string, Sides?, string, string, TPlusLimits?)
To get the position by portfolio and instrument.
Position GetPosition(Portfolio portfolio, Security security, string strategyId, Sides? side, string clientCode = "", string depoName = "", TPlusLimits? limit = null)
Parameters
portfolioPortfolioThe portfolio on which the position should be found.
securitySecurityThe instrument on which the position should be found.
strategyIdstringStrategy ID.
sideSides?Side.
clientCodestringThe client code.
depoNamestringThe depository name where the stock is located physically. By default, an empty string is passed, which means the total position by all depositories.
limitTPlusLimits?Limit type for Т+ market.
Returns
- Position
Position.