IStoragePositionList
StockSharp.Algo.Storages
The interface for access to the position storage.
Implements: IStorageEntityList<Position>, INotifyList<Position>, INotifyCollection<Position>, ICollection<Position>, IEnumerable<Position>, IEnumerable, IList<Position>, ISynchronizedCollection<Position>, ISynchronizedCollection, ISynchronizable
Methods
GetPosition
public Position GetPosition(Portfolio portfolio, Security security, string strategyId, Sides? side, string clientCode, string depoName, TPlusLimits? limit)
result = iStoragePositionList.GetPosition(portfolio, security, strategyId, side, clientCode, depoName, limit)
To get the position by portfolio and instrument.
- portfolio
- The portfolio on which the position should be found.
- security
- The instrument on which the position should be found.
- strategyId
- Strategy ID.
- side
- Side.
- clientCode
- The client code.
- depoName
- The depository name where the stock is located physically. By default, an empty string is passed, which means the total position by all depositories.
- limit
- Limit type for Т+ market.
Returns: Position.