Interface IPositionProvider
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
The position provider interface.
public interface IPositionProvider : IPortfolioProvider
- Inherited Members
- Extension Methods
Properties
Positions
Get all positions.
IEnumerable<Position> Positions { get; }
Property Value
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? limitType = 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.
limitType
TPlusLimits?Limit type for Т+ market.
Returns
- Position
Position.
Events
NewPosition
New position received.
event Action<Position> NewPosition
Event Type
PositionChanged
Position changed.
event Action<Position> PositionChanged