IAccount¶
Summary¶
Contains the current account information.
Signature
1 |
|
Namespace¶
cAlgo.API.Internals
Examples¶
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
Properties¶
AccountType¶
Summary
Returns the current account type.
Signature
1 |
|
Return Value
AccountType
Balance¶
Summary
Returns the balance of the current account.
Signature
1 |
|
Return Value
double
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
1 2 |
|
Equity¶
Summary
Represents the equity of the current account (balance minus Unrealized Net Loss plus Unrealized Net Profit plus Bonus).
Signature
1 |
|
Return Value
double
Examples
1 |
|
Margin¶
Summary
Represents the margin of the current account.
Signature
1 |
|
Return Value
double
Examples
1 |
|
FreeMargin¶
Summary
Represents the free margin of the current account.
Signature
1 |
|
Return Value
double
Examples
1 |
|
MarginLevel¶
Summary
Represents the margin level of the current account.Margin Level (in %) is calculated using this formula:Equity / Margin * 100
Signature
1 |
|
Return Value
double?
Examples
1 |
|
IsLive¶
Summary
Defines if the account is Live or Demo. True if the Account is Live, False if it is a Demo.
Signature
1 |
|
Return Value
bool
Examples
1 2 3 4 |
|
Number¶
Summary
Returns the number of the current account, e.g. 123456.
Signature
1 |
|
Return Value
int
BrokerName¶
Summary
Returns the broker name of the current account.
Signature
1 |
|
Return Value
string
UnrealizedGrossProfit¶
Summary
Gets the Unrealized Gross profit value.
Signature
1 |
|
Return Value
double
UnrealizedNetProfit¶
Summary
Gets the Unrealized Net profit value.
Signature
1 |
|
Return Value
double
PreciseLeverage¶
Summary
Gets the precise account leverage value.
Signature
1 |
|
Return Value
double
Examples
1 |
|
StopOutLevel¶
Summary
Stop Out level is a lowest allowed Margin Level for account. If Margin Level is less than Stop Out, position will be closed sequentially until Margin Level is greater than Stop Out.
Signature
1 |
|
Return Value
double
UserId¶
Summary
Gets the user ID.
Signature
1 |
|
Return Value
long
Asset¶
Summary
Gets the account deposit asset/currency
Signature
1 |
|
Return Value
Asset
TotalMarginCalculationType¶
Summary
Type of total margin requirements per Symbol.
Signature
1 |
|
Return Value
TotalMarginCalculationType
Credit¶
Summary
Gets the credit of the current account.
Signature
1 |
|
Return Value
double
UserNickName¶
Summary
Gets the user nick name.
Signature
1 |
|
Return Value
string
Currency¶
Signature
1 |
|
Return Value
string
Leverage¶
Signature
1 |
|
Return Value
int
Positions¶
Signature
1 |
|
Return Value
IReadonlyList
PendingOrders¶
Signature
1 |
|
Return Value
IReadonlyList
Events¶
Switched¶
Summary
Occurs when user switch his account.
Signature
1 |
|