IPositionProvider

StockSharp.BusinessEntities

The position provider interface.

プロパティ

Positions : IEnumerable<Position>

Get all positions.

メソッド

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.

戻り値: Position.

イベント

NewPosition : Action<Position>

New position received.

PositionChanged : Action<Position>

Position changed.