ATAS
|
Represents a portfolio entity with various properties related to account balance, Profit and Loss (PnL), permissions, trading options, and more. More...
Public Member Functions | |
Portfolio () | |
Initializes a new instance of the Portfolio class with default values. | |
Portfolio | Clone () |
Creates a new instance of the Portfolio class that is a shallow copy of the current instance. | |
override string | ToString () |
Returns a string representation of the portfolio group, including various account-related information. | |
Protected Member Functions | |
void | OnPropertyChanged (string name) |
Raises the PropertyChanged event with the specified property name. | |
Properties | |
string | AccountID [get, set] |
string | DepoName [get, set] |
Gets or sets the name of the deposit for the portfolio. | |
Currencies? | Currency [get, set] |
Gets or sets the currency associated with the portfolio. | |
TPlusLimits? | TPlusLimit [get, set] |
Gets or sets the T+ limits for the portfolio. | |
ConnectionStates? | ConnectionState [get, set] |
Gets or sets the connection state of the portfolio. | |
decimal | Balance [get, set] |
Gets or sets the total available funds that the user can use right now to make an order. | |
decimal | BlockedMargin [get, set] |
Gets or sets the amount of funds that are blocked by current open positions and not included in the BalanceAvailable. | |
decimal | Leverage [get, set] |
Gets or sets the leverage of the portfolio. | |
decimal | BalancePower [get, set] |
Gets or sets the balance according to the leverage (on leverage x2, it will be two times bigger). | |
decimal? | BalanceAvailable [get, set] |
Gets or sets the balance excluding the BlockedMargin. | |
decimal | OpenPnL [get, set] |
Gets or sets the opened Profit and Loss (PnL) of the portfolio. The opened PnL represents the unrealized gains or losses from currently open positions. | |
decimal | ClosedPnL [get, set] |
Gets or sets the closed Profit and Loss (PnL) of the portfolio. The closed PnL represents the realized gains or losses from closed positions. | |
decimal | TotalClosedPnL [get, set] |
Gets or sets the total closed Profit and Loss (PnL) of the portfolio. The total closed PnL is the cumulative realized gains or losses from all closed positions. | |
decimal | TotalPnL [get] |
Gets the total Profit and Loss (PnL) of the portfolio. The total PnL is the sum of both the opened PnL and the total closed PnL. | |
decimal | MaxEquityValue [get, set] |
Gets or sets the maximum equity value of the portfolio. The maximum equity value represents the highest value of the portfolio's equity over time. | |
bool | IsLocked [get, set] |
bool | IsSuspended [get, set] |
Gets or sets a value indicating whether the trading options are suspended. | |
long? | TradingOptionsId [get, set] |
Gets or sets the ID of the associated trading options for the portfolio. | |
TradingOptions | TradingOptions [get, set] |
CommissionRulesGroup | CommissionRulesGroup [get, set] |
Gets or sets the commission rules group associated with the portfolio. The commission rules group is represented by an object of the CommissionRulesGroup class. This property is not visible in the user interface (Browsable(false)). | |
string | CommissionState [get, set] |
Gets or sets the state of the commission for the portfolio. | |
decimal | Commission [get, set] |
Gets or sets the commission value for the portfolio. | |
DateTime | ClosedPnlDate [get, set] |
Gets or sets the date of the closed profit and loss (PnL). | |
object | Data [get, set] |
Gets or sets additional data associated with the portfolio. | |
bool | IsAdviserPortfolio [get, set] |
Gets or sets a flag indicating whether the portfolio is associated with an adviser portfolio. | |
string | FcmId [get, set] |
Gets or sets the FCM ID (Futures Commission Merchant ID) associated with the portfolio. | |
string | IbId [get, set] |
Gets or sets the IB ID (Interactive Brokers ID) associated with the portfolio. | |
int | ActiveOrders [get, set] |
Gets or sets the number of active orders associated with the portfolio. | |
int | AtasId [get, set] |
Gets or sets the ATAS ID associated with the portfolio. | |
bool | IsRealAccount [get, set] |
Gets or sets a flag indicating whether the portfolio is associated with a real account. | |
long | UserId [get, set] |
Gets or sets the ID of the user associated with the portfolio. | |
User | User [get, set] |
Gets or sets the user associated with the portfolio. | |
List< PortfolioViewer > | Viewers [get] |
Gets the list of portfolio viewers associated with the portfolio. | |
List< PortfolioGroup > | Accounts [get] |
Gets a list of portfolio groups associated with the portfolio. | |
DateTime? | ProcessedTradeTime [get, set] |
Gets or sets the date and time when the trades for the portfolio were last processed. | |
string? | StatisticsUrl [get, set] |
Url to get trading statistics for this account. | |
EntityType | EntityType [get] |
Properties inherited from ATAS.DataFeedsCore.IEntity | |
EntityType | EntityType [get] |
Gets the type of the entity. | |
Events | |
PropertyChangedEventHandler | PropertyChanged |
Represents a portfolio entity with various properties related to account balance, Profit and Loss (PnL), permissions, trading options, and more.
ATAS.DataFeedsCore.Portfolio.Portfolio | ( | ) |
Initializes a new instance of the Portfolio class with default values.
Portfolio ATAS.DataFeedsCore.Portfolio.Clone | ( | ) |
Creates a new instance of the Portfolio class that is a shallow copy of the current instance.
|
protected |
Raises the PropertyChanged event with the specified property name.
name | The name of the property that changed. |
override string ATAS.DataFeedsCore.Portfolio.ToString | ( | ) |
Returns a string representation of the portfolio group, including various account-related information.
|
getset |
Gets or sets the account ID associated with the portfolio.
|
get |
Gets a list of portfolio groups associated with the portfolio.
|
getset |
Gets or sets the number of active orders associated with the portfolio.
|
getset |
Gets or sets the ATAS ID associated with the portfolio.
|
getset |
Gets or sets the total available funds that the user can use right now to make an order.
It includes the blocked margin. Represents the gross balance of the portfolio.
|
getset |
Gets or sets the balance excluding the BlockedMargin.
It is the amount of money that the user can use to open a new order right now.
|
getset |
Gets or sets the balance according to the leverage (on leverage x2, it will be two times bigger).
Use 0 when leverage is not applicable to the whole portfolio.
|
getset |
Gets or sets the amount of funds that are blocked by current open positions and not included in the BalanceAvailable.
|
getset |
Gets or sets the closed Profit and Loss (PnL) of the portfolio. The closed PnL represents the realized gains or losses from closed positions.
|
getset |
Gets or sets the date of the closed profit and loss (PnL).
|
getset |
Gets or sets the commission value for the portfolio.
|
getset |
Gets or sets the commission rules group associated with the portfolio. The commission rules group is represented by an object of the CommissionRulesGroup class. This property is not visible in the user interface (Browsable(false)).
|
getset |
Gets or sets the state of the commission for the portfolio.
|
getset |
Gets or sets the connection state of the portfolio.
|
getset |
Gets or sets the currency associated with the portfolio.
|
getset |
Gets or sets additional data associated with the portfolio.
|
getset |
Gets or sets the name of the deposit for the portfolio.
|
get |
Gets the entity type, which is EntityType.Portfolio.
Implements ATAS.DataFeedsCore.IEntity.
|
getset |
Gets or sets the FCM ID (Futures Commission Merchant ID) associated with the portfolio.
|
getset |
Gets or sets the IB ID (Interactive Brokers ID) associated with the portfolio.
|
getset |
Gets or sets a flag indicating whether the portfolio is associated with an adviser portfolio.
|
getset |
Gets or sets a value indicating whether the trading options are locked.
|
getset |
Gets or sets a flag indicating whether the portfolio is associated with a real account.
|
getset |
Gets or sets a value indicating whether the trading options are suspended.
|
getset |
Gets or sets the leverage of the portfolio.
|
getset |
Gets or sets the maximum equity value of the portfolio. The maximum equity value represents the highest value of the portfolio's equity over time.
|
getset |
Gets or sets the opened Profit and Loss (PnL) of the portfolio. The opened PnL represents the unrealized gains or losses from currently open positions.
|
getset |
Gets or sets the date and time when the trades for the portfolio were last processed.
|
getset |
Url to get trading statistics for this account.
|
getset |
Gets or sets the total closed Profit and Loss (PnL) of the portfolio. The total closed PnL is the cumulative realized gains or losses from all closed positions.
|
get |
Gets the total Profit and Loss (PnL) of the portfolio. The total PnL is the sum of both the opened PnL and the total closed PnL.
|
getset |
Gets or sets the T+ limits for the portfolio.
|
getset |
Gets or sets the trading options associated with the portfolio.
|
getset |
Gets or sets the ID of the associated trading options for the portfolio.
|
getset |
Gets or sets the user associated with the portfolio.
|
getset |
Gets or sets the ID of the user associated with the portfolio.
|
get |
Gets the list of portfolio viewers associated with the portfolio.
PropertyChangedEventHandler ATAS.DataFeedsCore.Portfolio.PropertyChanged |