IPositionProvider

StockSharp.BusinessEntities

The position provider interface.

Eigenschaften

Positions : IEnumerable<Position>

Get all positions.

Methoden

GetPosition(Portfolio, Security, string, Sides?, string, string, TPlusLimits?) : Position

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.
limitType
Limit type for Т+ market.

Rückgabe: Position.

Ereignisse

NewPosition : Action<Position>

New position received.

PositionChanged : Action<Position>

Position changed.