Class Account
Contains all user's account information
public class Account : BusinessObject, IConnectionBindedObject, IUniqueID, IRulesContainer, IMessageBuilder<MessageAccount>, IComparable, IComparable<Account>
Properties
Gets base currency of account. Account CCY is always equal to the server CCY in AlgoStudio
Declaration
public Asset AccountCurrency { get; }
Property Value
Gets current balance of the account.
Declaration
public double Balance { get; }
Property Value
Type |
Description |
System.Double |
|
Gets account unique code.
Declaration
public string Id { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public NettingType NettingType { get; set; }
Property Value
Type |
Description |
TradingPlatform.BusinessLayer.NettingType |
|
Methods
Declaration
public int CompareTo(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int CompareTo(Account other)
Parameters
Type |
Name |
Description |
Account |
other |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool Equals(Symbol other)
Parameters
Type |
Name |
Description |
Symbol |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Events
Will be triggered on each account information updating
Declaration
public event Action<Account> Updated
Event Type
Implements
IComparable
IComparable<>