Click or drag to resize

Portfolio Class

Portfolio, describing the trading account and the size of its generated commission.
Inheritance Hierarchy

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.17.0 (4.4.17)
Syntax
C#
[SerializableAttribute]
public class Portfolio : Position

The Portfolio type exposes the following members.

Constructors
  NameDescription
Public methodPortfolio
Initializes a new instance of the Portfolio.
Top
Properties
  NameDescription
Public propertyStatic memberAnonymousPortfolio
Portfolio associated with the orders received through the orders log.
Public propertyAveragePrice
Average price.
(Inherited from Position.)
Public propertyBeginValue
Position size at the beginning of the trading session.
(Inherited from Position.)
Public propertyBlockedValue
Position size, registered for active orders.
(Inherited from Position.)
Public propertyBoard
Exchange board, for which the current portfolio is active.
Public propertyClientCode
Client code assigned by the broker.
(Inherited from Position.)
Public propertyCommission
Total commission.
(Inherited from Position.)
Public propertyCommissionMaker
Commission (maker).
(Inherited from Position.)
Public propertyCommissionTaker
Commission (taker).
(Inherited from Position.)
Public propertyCurrency
Portfolio currency.
(Inherited from Position.)
Public propertyCurrentPrice
Position price.
(Inherited from Position.)
Public propertyCurrentValue
Current position size.
(Inherited from Position.)
Public propertyDepoName
The depositary where the physical security.
(Inherited from Position.)
Public propertyDescription
Text position description.
(Inherited from Position.)
Public propertyExpirationDate
Expiration date.
(Inherited from Position.)
Public propertyExtensionInfo
Extended information.
(Inherited from Position.)
Public propertyInternalId
Internal identifier.
Public propertyLastChangeTime
Time of last position change.
(Inherited from Position.)
Public propertyLeverage
Margin leverage.
(Inherited from Position.)
Public propertyLimitType
Limit type for Т+ market.
(Inherited from Position.)
Public propertyLocalTime
Local time of the last position change.
(Inherited from Position.)
Public propertyName
Portfolio code name.
Public propertyPortfolio
Portfolio, in which position is created.
(Inherited from Position.)
Public propertyRealizedPnL
Realized profit.
(Inherited from Position.)
Public propertySecurity
Security, for which a position was created.
(Inherited from Position.)
Public propertySettlementPrice
Settlement price.
(Inherited from Position.)
Public propertyState
Portfolio state.
Public propertyUnrealizedPnL
Unrealized profit.
(Inherited from Position.)
Public propertyVariationMargin
Variation margin.
(Inherited from Position.)
Top
Methods
  NameDescription
Public methodClone
Create a copy of Portfolio.
Public methodCopyTo(Portfolio)
To copy the current portfolio fields to the destination.
Public methodCopyTo(Position)
To copy fields of the current position to destination.
(Inherited from Position.)
Public methodStatic memberCreateSimulator
Create virtual portfolio for simulation.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodNotifyChanged (Inherited from NotifiableObject.)
Protected methodNotifyChanging (Inherited from NotifiableObject.)
Public methodNotifyPropertyChanged (Inherited from NotifiableObject.)
Public methodToString
Returns a string that represents the current object.
(Overrides PositionToString.)
Top
Events
  NameDescription
Public eventPropertyChanged (Inherited from NotifiableObject.)
Public eventPropertyChanging (Inherited from NotifiableObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodApplyChanges(PositionChangeMessage)Overloaded.
Apply changes to the position object.
(Defined by TraderHelper.)
Public Extension MethodApplyChanges(PositionChangeMessage, IExchangeInfoProvider)Overloaded.
Apply changes to the portfolio object.
(Defined by TraderHelper.)
Public Extension MethodChanged
To create a rule for the position change event.
(Defined by MarketRuleHelper.)
Public Extension MethodGetDirection
To get the order direction for the position.
(Defined by TraderHelper.)
Public Extension MethodGetPnL
To calculate profit-loss based on the portfolio.
(Defined by TraderHelper.)
Public Extension MethodGetUniqueId
Get portfolio identifier.
(Defined by TraderHelper.)
Public Extension MethodIsSame
Determines the specified portfolio is required.
(Defined by TraderHelper.)
Public Extension MethodToChangeMessageOverloaded.
To convert the portfolio into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToChangeMessage(Int64)Overloaded.
To convert the position into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToLookupCriteria
Convert Portfolio to PortfolioLookupMessage value.
(Defined by MessageConverterHelper.)
Public Extension MethodToMessage
To convert the portfolio into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToPositionManager
Convert the position object to the type IPositionManager.
(Defined by TraderHelper.)
Public Extension MethodWhenChanged
To create a rule for the event of change portfolio .
(Defined by MarketRuleHelper.)
Public Extension MethodWhenLess
To create a rule for the event of position decrease below the specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMoneyLess
To create a rule for the event of money decrease in portfolio below the specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMoneyMore
To create a rule for the event of money increase in portfolio above the specific level.
(Defined by MarketRuleHelper.)
Public Extension MethodWhenMore
To create a rule for the event of position increase above the specific level.
(Defined by MarketRuleHelper.)
Top
See Also