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>, ICollection<Position>, IEnumerable<Position>, IEnumerable, ISynchronizedCollection<Position>, 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
portfolio
PortfolioThe portfolio on which the position should be found.
security
SecurityThe instrument on which the position should be found.
strategyId
stringStrategy ID.
side
Sides?Side.
clientCode
stringThe client code.
depoName
stringThe depository name where the stock is located physically. By default, an empty string is passed, which means the total position by all depositories.
limit
TPlusLimits?Limit type for Т+ market.
Returns
- Position
Position.