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
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.
limitTypeTPlusLimits?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