Represents a trading position.
More...
|
| void | OnPropertyChanged (string name) |
| | Raises the PropertyChanged event to notify subscribers that a property's value has changed.
|
| |
|
| 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.
|
| |
| TPlusLimits? | TPlusLimit [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.
|
| |
| RiskInfo? | Risk [get, set] |
| | Gets or sets information about marginal trading options. Null if marginal trading is not supported.
|
| |
| EntityType | EntityType [get] |
| | Gets the type of the entity.
|
| |
Represents a trading position.
◆ 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
-
| name | The name of the property that changed. |
◆ ToString()
| override string ATAS.DataFeedsCore.Position.ToString |
( |
| ) |
|
◆ 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
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
◆ 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
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
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.
◆ PropertyChanged
| PropertyChangedEventHandler ATAS.DataFeedsCore.Position.PropertyChanged |
The documentation for this class was generated from the following file: