com.dukascopy.api
Interface IAccount


public interface IAccount

Methods of this interface allows to retrieve account information such as current equity


Method Summary
 String getAccountId()
          Returns account id
 Set<String> getClientIds()
          Returns client ids for manager account
 double getCreditLine()
          Returns current available credit.
 Currency getCurrency()
          Returns account currency
 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 maximum use of leverage exceeding which will result in margin cut.
 double getUseOfLeverage()
          Returns current use of leverage.
 boolean isGlobal()
          Returns true if account is global account
 

Method Detail

getCurrency

Currency getCurrency()
Returns account currency

Returns:
account currency

getEquity

double getEquity()
Returns current equity. Value returned by this function is for information purposes and can be incorrect right after order changes, as it is updated about every 5 seconds

Returns:
equity

getLeverage

double getLeverage()
Returns current leverage. This is fixed value that is set when you sign contract with Dukascopy. Usually has value of 100

Returns:
leverage

getUseOfLeverage

double getUseOfLeverage()
Returns current use of leverage. Value returned by this function is for information purposes and can be incorrect right after order changes, as it is updated about every 5 seconds

Returns:
leverage

getCreditLine

double getCreditLine()
Returns current available credit. Value returned by this function is for information purposes and can be incorrect right after order changes, as it is updated about every 5 seconds

Returns:
available credit

getMarginCutLevel

int getMarginCutLevel()
Returns maximum use of leverage exceeding which will result in margin cut

Returns:
maximum use of leverage before margin cuts

getOverWeekEndLeverage

int getOverWeekEndLeverage()
Returns maximum use of leverage exceeding which will result in margin cut. Value effective before weekends

Returns:
maximum use of leverage before margin cuts at weekends

isGlobal

boolean isGlobal()
Returns true if account is global account

Returns:
true if account is global account

getAccountId

String getAccountId()
Returns account id

Returns:
account id

getClientIds

Set<String> getClientIds()
Returns client ids for manager account

Returns:
set of client ids


Copyright © 2011. All Rights Reserved.