ATAS
Loading...
Searching...
No Matches
ATAS.DataFeedsCore.Position Class Reference

Represents a trading position. More...

Inheritance diagram for ATAS.DataFeedsCore.Position:
[legend]
Collaboration diagram for ATAS.DataFeedsCore.Position:
[legend]

Public Member Functions

Position Clone ()
 Creates a deep copy of the current position.
 
override string ToString ()
 

Protected Member Functions

void OnPropertyChanged (string name)
 Raises the PropertyChanged event to notify subscribers that a property's value has changed.
 

Properties

string AccountID [get, set]
 Gets or sets the unique identifier of the account associated with this position.
 
string SecurityId [get, set]
 Gets or sets the unique identifier of the security associated with this position.
 
Portfolio Portfolio [get, set]
 Gets or sets the portfolio associated with this position.
 
Security Security [get, set]
 Gets or sets the security associated with this position.
 
TPlusLimitsTPlusLimit [get, set]
 Gets or sets the T+ limit associated with this position, if applicable.
 
PositionAveragePriceValueTypes AveragePriceValueType [get, set]
 Gets or sets the type of value used to calculate the average price of the position.
 
decimal AveragePrice [get, set]
 Gets or sets the average price at which the position was acquired.
 
decimal UnrealizedPnL [get, set]
 Gets or sets the unrealized profit or loss associated with this position.
 
decimal RealizedPnL [get, set]
 Gets or sets the realized profit or loss associated with this position.
 
decimal Volume [get, set]
 Gets or sets the current volume of the position.
 
decimal OpenVolume [get, set]
 Gets or sets the open volume (unfilled quantity) of the financial instrument associated with this position.
 
decimal CurrentBuy [get, set]
 Gets or sets the current buy price for the financial instrument associated with this position.
 
decimal CurrentSell [get, set]
 Gets or sets the current sell price for the financial instrument associated with this position.
 
bool IsInPosition [get, set]
 Gets or sets whether the position is currently open (in position).
 
object Parent [get, set]
 Gets or sets the parent or container object associated with this position.
 
decimal Commission [get, set]
 Gets or sets the commission associated with this position.
 
EntityType EntityType [get]
 
PnlPercentType PnlPercentType = PnlPercentType.Portfolio [get, set]
 Calculate pnl percent from portfolio balance or position margin.
 
RiskInfoRisk [get, set]
 Gets or sets information about marginal trading options. Null if marginal trading is not supported.
 
- Properties inherited from ATAS.DataFeedsCore.IEntity
EntityType EntityType [get]
 Gets the type of the entity.
 

Events

PropertyChangedEventHandler PropertyChanged
 

Detailed Description

Represents a trading position.

Member Function Documentation

◆ Clone()

Position ATAS.DataFeedsCore.Position.Clone ( )

Creates a deep copy of the current position.

Returns
A new instance of the Position class that is a copy of the current position.

◆ OnPropertyChanged()

void ATAS.DataFeedsCore.Position.OnPropertyChanged ( string  name)
protected

Raises the PropertyChanged event to notify subscribers that a property's value has changed.

Parameters
nameThe name of the property that changed.

◆ ToString()

override string ATAS.DataFeedsCore.Position.ToString ( )

Property Documentation

◆ AccountID

string ATAS.DataFeedsCore.Position.AccountID
getset

Gets or sets the unique identifier of the account associated with this position.

◆ AveragePrice

decimal ATAS.DataFeedsCore.Position.AveragePrice
getset

Gets or sets the average price at which the position was acquired.

◆ AveragePriceValueType

PositionAveragePriceValueTypes ATAS.DataFeedsCore.Position.AveragePriceValueType
getset

Gets or sets the type of value used to calculate the average price of the position.

◆ Commission

decimal ATAS.DataFeedsCore.Position.Commission
getset

Gets or sets the commission associated with this position.

◆ CurrentBuy

decimal ATAS.DataFeedsCore.Position.CurrentBuy
getset

Gets or sets the current buy price for the financial instrument associated with this position.

◆ CurrentSell

decimal ATAS.DataFeedsCore.Position.CurrentSell
getset

Gets or sets the current sell price for the financial instrument associated with this position.

◆ EntityType

EntityType ATAS.DataFeedsCore.Position.EntityType
get

Gets the entity type, which is EntityType.Position.

Implements ATAS.DataFeedsCore.IEntity.

◆ IsInPosition

bool ATAS.DataFeedsCore.Position.IsInPosition
getset

Gets or sets whether the position is currently open (in position).

◆ OpenVolume

decimal ATAS.DataFeedsCore.Position.OpenVolume
getset

Gets or sets the open volume (unfilled quantity) of the financial instrument associated with this position.

◆ Parent

object ATAS.DataFeedsCore.Position.Parent
getset

Gets or sets the parent or container object associated with this position.

◆ PnlPercentType

PnlPercentType ATAS.DataFeedsCore.Position.PnlPercentType = PnlPercentType.Portfolio
getset

Calculate pnl percent from portfolio balance or position margin.

◆ Portfolio

Portfolio ATAS.DataFeedsCore.Position.Portfolio
getset

Gets or sets the portfolio associated with this position.

◆ RealizedPnL

decimal ATAS.DataFeedsCore.Position.RealizedPnL
getset

Gets or sets the realized profit or loss associated with this position.

◆ Risk

RiskInfo? ATAS.DataFeedsCore.Position.Risk
getset

Gets or sets information about marginal trading options. Null if marginal trading is not supported.

◆ Security

Security ATAS.DataFeedsCore.Position.Security
getset

Gets or sets the security associated with this position.

◆ SecurityId

string ATAS.DataFeedsCore.Position.SecurityId
getset

Gets or sets the unique identifier of the security associated with this position.

◆ TPlusLimit

TPlusLimits? ATAS.DataFeedsCore.Position.TPlusLimit
getset

Gets or sets the T+ limit associated with this position, if applicable.

◆ UnrealizedPnL

decimal ATAS.DataFeedsCore.Position.UnrealizedPnL
getset

Gets or sets the unrealized profit or loss associated with this position.

◆ Volume

decimal ATAS.DataFeedsCore.Position.Volume
getset

Gets or sets the current volume of the position.

Volume is positive for LONG positions and negative for SHORT.

Event Documentation

◆ PropertyChanged

PropertyChangedEventHandler ATAS.DataFeedsCore.Position.PropertyChanged


The documentation for this class was generated from the following file: