Table of Contents

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

IEnumerable<Position>

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 Portfolio

The portfolio on which the position should be found.

security Security

The instrument on which the position should be found.

strategyId string

Strategy ID.

side Sides?

Side.

clientCode string

The client code.

depoName string

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 TPlusLimits?

Limit type for Т+ market.

Returns

Position

Position.

Events

NewPosition

New position received.

event Action<Position> NewPosition

Event Type

Action<Position>

PositionChanged

Position changed.

event Action<Position> PositionChanged

Event Type

Action<Position>