public interface IAccount
Modifier and Type | Interface and Description |
---|---|
static class |
IAccount.AccountState
Account state: OK, MARGIN_CLOSING, MARGIN_CALL, OK_NO_MARGIN_CALL, DISABLED, BLOCKED.
|
Modifier and Type | Method and Description |
---|---|
ICurrency |
getAccountCurrency()
Returns account currency.
|
java.lang.String |
getAccountId()
Returns account id
|
IAccount.AccountState |
getAccountState()
Returns account state
|
double |
getBalance()
Returns account balance.
|
double |
getBaseEquity()
Returns current base equity (No open Profit/Loss).
|
java.util.Set<java.lang.String> |
getClientIds()
Deprecated.
use
getClients() |
java.util.Set<IClientInfo> |
getClients()
In case of manager account, returns client info objects for managed accounts.
|
double |
getCreditLine()
Returns current available credit.
|
java.util.Currency |
getCurrency()
Deprecated.
Use
getAccountCurrency() instead |
double |
getEquity()
Returns current equity.
|
double |
getLeverage()
Returns current leverage.
|
int |
getMarginCutLevel()
Returns maximum use of leverage exceeding which will result in margin cut
|
int |
getOverWeekEndLeverage()
Returns over weekend leverage.
|
double |
getStopLossLevel()
Returns account's equity stop loss level.
|
double |
getUsedMargin()
Returns used margin in account currency
|
double |
getUseOfLeverage()
Returns current use of leverage.
|
java.lang.String |
getUserName()
Returns user name
|
boolean |
isConnected()
Returns true if account is connected to server
|
boolean |
isGlobal()
Returns true if account is global account
|
java.util.Currency getCurrency()
getAccountCurrency()
insteadICurrency getAccountCurrency()
double getEquity()
double getBaseEquity()
double getBalance()
double getLeverage()
double getUseOfLeverage()
double getCreditLine()
int getMarginCutLevel()
int getOverWeekEndLeverage()
boolean isGlobal()
java.lang.String getAccountId()
@Deprecated java.util.Set<java.lang.String> getClientIds()
getClients()
java.util.Set<IClientInfo> getClients()
clients
IAccount.AccountState getAccountState()
state
double getStopLossLevel()
boolean isConnected()
true
if account is connected to server, false
- otherwisejava.lang.String getUserName()
double getUsedMargin()
Copyright © 2024. All rights reserved.