Show / Hide Table of Contents

    Class Account

    Contains all user's account information

    Namespace: TradingPlatform.BusinessLayer
    Syntax
    public class Account : BusinessObject, IConnectionBindedObject, IUniqueID, IRulesContainer, IMessageBuilder<MessageAccount>, IComparable, IComparable<Account>

    Properties

    AccountCurrency

    Gets base currency of account. Account CCY is always equal to the server CCY in AlgoStudio

    Declaration
    public Asset AccountCurrency { get; }
    Property Value
    Type Description
    Asset

    Balance

    Gets current balance of the account.

    Declaration
    public double Balance { get; }
    Property Value
    Type Description
    System.Double

    Id

    Gets account unique code.

    Declaration
    public string Id { get; }
    Property Value
    Type Description
    System.String

    Name

    Obtaining account name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    NettingType

    Declaration
    public NettingType NettingType { get; set; }
    Property Value
    Type Description
    TradingPlatform.BusinessLayer.NettingType

    Methods

    CompareTo(Object)

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Int32

    CompareTo(Account)

    Declaration
    public int CompareTo(Account other)
    Parameters
    Type Name Description
    Account other
    Returns
    Type Description
    System.Int32

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    Equals(Symbol)

    Declaration
    public bool Equals(Symbol other)
    Parameters
    Type Name Description
    Symbol other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Events

    Updated

    Will be triggered on each account information updating

    Declaration
    public event Action<Account> Updated
    Event Type
    Type Description
    Action<Account>

    Implements

    IComparable
    IComparable<>
    Back to top Copyright QUANTOWER LLC. © 2017-2021. All rights reserved.