Interface IPositionProvider
- Namespace
- StockSharp.BusinessEntities
- Assembly
- StockSharp.BusinessEntities.dll
The position provider interface.
public interface IPositionProvider- 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
- portfolioPortfolio
- The portfolio on which the position should be found. 
- securitySecurity
- The instrument on which the position should be found. 
- strategyIdstring
- Strategy ID. 
- sideSides?
- Side. 
- clientCodestring
- The client code. 
- depoNamestring
- The depository name where the stock is located physically. By default, an empty string is passed, which means the total position by all depositories. 
- limitTypeTPlusLimits?
- Limit type for Т+ market. 
Returns
- Position
- Position. 
Events
NewPosition
New position received.
event Action<Position> NewPositionEvent Type
PositionChanged
Position changed.
event Action<Position> PositionChanged