Click or drag to resize

Position Class

The position by the instrument.
Inheritance Hierarchy

Namespace:  StockSharp.BusinessEntities
Assembly:  StockSharp.BusinessEntities (in StockSharp.BusinessEntities.dll) Version: 4.4.16.0 (4.4.16)
Syntax
C#
[SerializableAttribute]
public class Position : BasePosition

The Position type exposes the following members.

Constructors
  NameDescription
Public methodPosition
Initializes a new instance of the Position.
Top
Properties
  NameDescription
Public propertyAveragePrice
Average price.
(Inherited from BasePosition.)
Public propertyBeginValue
Position size at the beginning of the trading session.
(Inherited from BasePosition.)
Public propertyBlockedValue
Position size, registered for active orders.
(Inherited from BasePosition.)
Public propertyClientCode
Client code assigned by the broker.
(Inherited from BasePosition.)
Public propertyCommission
Total commission.
(Inherited from BasePosition.)
Public propertyCurrency
Portfolio currency.
(Inherited from BasePosition.)
Public propertyCurrentPrice
Position price.
(Inherited from BasePosition.)
Public propertyCurrentValue
Current position size.
(Inherited from BasePosition.)
Public propertyDepoName
The depositary where the physical security.
Public propertyDescription
Text position description.
(Inherited from BasePosition.)
Public propertyExpirationDate
Expiration date.
(Inherited from BasePosition.)
Public propertyExtensionInfo
Extended information.
(Inherited from BasePosition.)
Public propertyLastChangeTime
Time of last position change.
(Inherited from BasePosition.)
Public propertyLimitType
Limit type for Т+ market.
Public propertyLocalTime
Local time of the last position change.
(Inherited from BasePosition.)
Public propertyPortfolio
Portfolio, in which position is created.
Public propertyRealizedPnL
Realized profit.
(Inherited from BasePosition.)
Public propertySecurity
Security, for which a position was created.
Public propertySettlementPrice
Settlement price.
(Inherited from BasePosition.)
Public propertyUnrealizedPnL
Unrealized profit.
(Inherited from BasePosition.)
Public propertyVariationMargin
Variation margin.
(Inherited from BasePosition.)
Top
Methods
  NameDescription
Public methodClone
Create a copy of Position.
Public methodCopyTo(BasePosition)
To copy fields of the current position to destination.
(Inherited from BasePosition.)
Public methodCopyTo(Position)
To copy fields of the current position to destination.
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 ObjectToString.)
Top
Events
  NameDescription
Public eventPropertyChanged (Inherited from NotifiableObject.)
Public eventPropertyChanging (Inherited from NotifiableObject.)
Top
Extension Methods
  NameDescription
Public Extension MethodApplyChanges
Apply changes to the position 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 MethodToChangeMessage
To convert the position into message.
(Defined by MessageConverterHelper.)
Public Extension MethodToPositionManager
Convert the position object to the type IPositionManager.
(Defined by TraderHelper.)
Public Extension MethodWhenLess
To create a rule for the event of position decrease below 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