Click or drag to resize

IPositionStorage Interface

The interface for access to the position storage.

Namespace:  StockSharp.Algo.Storages
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
public interface IPositionStorage : IPositionProvider, 
	IPortfolioProvider

The IPositionStorage type exposes the following members.

Properties
  NameDescription
Public propertyPortfolios
Get all portfolios.
(Inherited from IPortfolioProvider.)
Public propertyPositions
Get all positions.
(Inherited from IPositionProvider.)
Top
Methods
  NameDescription
Public methodDelete(Portfolio)
Delete portfolio.
Public methodDelete(Position)
Delete position.
Public methodGetPortfolio
To get the portfolio by the name.
(Inherited from IPortfolioProvider.)
Public methodGetPosition
To get the position by portfolio and instrument.
(Inherited from IPositionProvider.)
Public methodSave(Portfolio)
Save portfolio.
Public methodSave(Position)
Save position.
Top
Events
  NameDescription
Public eventNewPortfolio
New portfolio received.
(Inherited from IPortfolioProvider.)
Public eventNewPosition
New position received.
(Inherited from IPositionProvider.)
Public eventPortfolioChanged
Portfolio changed.
(Inherited from IPortfolioProvider.)
Public eventPositionChanged
Position changed.
(Inherited from IPositionProvider.)
Top
Extension Methods
  NameDescription
Public Extension MethodLookupByPortfolioName
To get the portfolio by the code name.
(Defined by TraderHelper.)
Top
See Also