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

Represents a portfolio entity with various properties related to account balance, Profit and Loss (PnL), permissions, trading options, and more. More...

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

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.
 
CurrenciesCurrency [get, set]
 Gets or sets the currency associated with the portfolio.
 
TPlusLimitsTPlusLimit [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< PortfolioViewerViewers [get]
 Gets the list of portfolio viewers associated with the portfolio.
 
List< PortfolioGroupAccounts [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
 

Detailed Description

Represents a portfolio entity with various properties related to account balance, Profit and Loss (PnL), permissions, trading options, and more.

Constructor & Destructor Documentation

◆ Portfolio()

ATAS.DataFeedsCore.Portfolio.Portfolio ( )

Initializes a new instance of the Portfolio class with default values.

Member Function Documentation

◆ Clone()

Portfolio ATAS.DataFeedsCore.Portfolio.Clone ( )

Creates a new instance of the Portfolio class that is a shallow copy of the current instance.

Returns
A shallow copy of the current instance.

◆ OnPropertyChanged()

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

Raises the PropertyChanged event with the specified property name.

Parameters
nameThe name of the property that changed.

◆ ToString()

override string ATAS.DataFeedsCore.Portfolio.ToString ( )

Returns a string representation of the portfolio group, including various account-related information.

Returns
A string representation of the portfolio group.

Property Documentation

◆ AccountID

string ATAS.DataFeedsCore.Portfolio.AccountID
getset

Gets or sets the account ID associated with the portfolio.

◆ Accounts

List<PortfolioGroup> ATAS.DataFeedsCore.Portfolio.Accounts
get

Gets a list of portfolio groups associated with the portfolio.

◆ ActiveOrders

int ATAS.DataFeedsCore.Portfolio.ActiveOrders
getset

Gets or sets the number of active orders associated with the portfolio.

◆ AtasId

int ATAS.DataFeedsCore.Portfolio.AtasId
getset

Gets or sets the ATAS ID associated with the portfolio.

◆ Balance

decimal ATAS.DataFeedsCore.Portfolio.Balance
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.

◆ BalanceAvailable

decimal? ATAS.DataFeedsCore.Portfolio.BalanceAvailable
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.

◆ BalancePower

decimal ATAS.DataFeedsCore.Portfolio.BalancePower
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.

◆ BlockedMargin

decimal ATAS.DataFeedsCore.Portfolio.BlockedMargin
getset

Gets or sets the amount of funds that are blocked by current open positions and not included in the BalanceAvailable.

◆ ClosedPnL

decimal ATAS.DataFeedsCore.Portfolio.ClosedPnL
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.

◆ ClosedPnlDate

DateTime ATAS.DataFeedsCore.Portfolio.ClosedPnlDate
getset

Gets or sets the date of the closed profit and loss (PnL).

◆ Commission

decimal ATAS.DataFeedsCore.Portfolio.Commission
getset

Gets or sets the commission value for the portfolio.

◆ CommissionRulesGroup

CommissionRulesGroup ATAS.DataFeedsCore.Portfolio.CommissionRulesGroup
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)).

◆ CommissionState

string ATAS.DataFeedsCore.Portfolio.CommissionState
getset

Gets or sets the state of the commission for the portfolio.

◆ ConnectionState

ConnectionStates? ATAS.DataFeedsCore.Portfolio.ConnectionState
getset

Gets or sets the connection state of the portfolio.

◆ Currency

Currencies? ATAS.DataFeedsCore.Portfolio.Currency
getset

Gets or sets the currency associated with the portfolio.

◆ Data

object ATAS.DataFeedsCore.Portfolio.Data
getset

Gets or sets additional data associated with the portfolio.

◆ DepoName

string ATAS.DataFeedsCore.Portfolio.DepoName
getset

Gets or sets the name of the deposit for the portfolio.

◆ EntityType

EntityType ATAS.DataFeedsCore.Portfolio.EntityType
get

Gets the entity type, which is EntityType.Portfolio.

Implements ATAS.DataFeedsCore.IEntity.

◆ FcmId

string ATAS.DataFeedsCore.Portfolio.FcmId
getset

Gets or sets the FCM ID (Futures Commission Merchant ID) associated with the portfolio.

◆ IbId

string ATAS.DataFeedsCore.Portfolio.IbId
getset

Gets or sets the IB ID (Interactive Brokers ID) associated with the portfolio.

◆ IsAdviserPortfolio

bool ATAS.DataFeedsCore.Portfolio.IsAdviserPortfolio
getset

Gets or sets a flag indicating whether the portfolio is associated with an adviser portfolio.

◆ IsLocked

bool ATAS.DataFeedsCore.Portfolio.IsLocked
getset

Gets or sets a value indicating whether the trading options are locked.

◆ IsRealAccount

bool ATAS.DataFeedsCore.Portfolio.IsRealAccount
getset

Gets or sets a flag indicating whether the portfolio is associated with a real account.

◆ IsSuspended

bool ATAS.DataFeedsCore.Portfolio.IsSuspended
getset

Gets or sets a value indicating whether the trading options are suspended.

◆ Leverage

decimal ATAS.DataFeedsCore.Portfolio.Leverage
getset

Gets or sets the leverage of the portfolio.

◆ MaxEquityValue

decimal ATAS.DataFeedsCore.Portfolio.MaxEquityValue
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.

◆ OpenPnL

decimal ATAS.DataFeedsCore.Portfolio.OpenPnL
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.

◆ ProcessedTradeTime

DateTime? ATAS.DataFeedsCore.Portfolio.ProcessedTradeTime
getset

Gets or sets the date and time when the trades for the portfolio were last processed.

◆ StatisticsUrl

string? ATAS.DataFeedsCore.Portfolio.StatisticsUrl
getset

Url to get trading statistics for this account.

◆ TotalClosedPnL

decimal ATAS.DataFeedsCore.Portfolio.TotalClosedPnL
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.

◆ TotalPnL

decimal ATAS.DataFeedsCore.Portfolio.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.

◆ TPlusLimit

TPlusLimits? ATAS.DataFeedsCore.Portfolio.TPlusLimit
getset

Gets or sets the T+ limits for the portfolio.

◆ TradingOptions

TradingOptions ATAS.DataFeedsCore.Portfolio.TradingOptions
getset

Gets or sets the trading options associated with the portfolio.

◆ TradingOptionsId

long? ATAS.DataFeedsCore.Portfolio.TradingOptionsId
getset

Gets or sets the ID of the associated trading options for the portfolio.

◆ User

User ATAS.DataFeedsCore.Portfolio.User
getset

Gets or sets the user associated with the portfolio.

◆ UserId

long ATAS.DataFeedsCore.Portfolio.UserId
getset

Gets or sets the ID of the user associated with the portfolio.

◆ Viewers

List<PortfolioViewer> ATAS.DataFeedsCore.Portfolio.Viewers
get

Gets the list of portfolio viewers associated with the portfolio.

Event Documentation

◆ PropertyChanged

PropertyChangedEventHandler ATAS.DataFeedsCore.Portfolio.PropertyChanged

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