com.dukascopy.api.system
Class Commissions

java.lang.Object
  extended by com.dukascopy.api.system.Commissions
All Implemented Interfaces:
java.io.Serializable

Deprecated.

@Deprecated
public class Commissions
extends java.lang.Object
implements java.io.Serializable

Class allows detailed configuration of commissions. Default values are filled when class is created

See Also:
Serialized Form

Constructor Summary
Commissions(boolean custodianBankOrGuarantee)
          Deprecated. 
 
Method Summary
 java.util.SortedMap<java.lang.Double,java.lang.Double> getDepositLimits()
          Deprecated. 
 java.util.SortedMap<java.lang.Double,java.lang.Double> getEquityLimits()
          Deprecated. 
 double[] getLast30DaysTurnoverAtStart()
          Deprecated. 
 double getMaxCommission()
          Deprecated. 
 java.util.SortedMap<java.lang.Double,java.lang.Double> getTurnoverLimits()
          Deprecated. 
 boolean isCustodianBankOrGuarantee()
          Deprecated. 
 void setDepositLimit(double limit, double commission)
          Deprecated. 
 void setEquityLimit(double limit, double commission)
          Deprecated. 
 void setLast30DaysTurnoverAtStart(double[] last30DaysTurnoverAtStart)
          Deprecated. 
 void setMaxCommission(double maxCommission)
          Deprecated. 
 void setTurnoverLimit(double limit, double commission)
          Deprecated. 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Commissions

@Deprecated
public Commissions(boolean custodianBankOrGuarantee)
Deprecated. 

Creates commissions class and fills in default values

Parameters:
custodianBankOrGuarantee - if true then deposit with custodian bank or bank guarantee is assumed
Method Detail

setMaxCommission

@Deprecated
public void setMaxCommission(double maxCommission)
Deprecated. 

Sets commission for situations when deposit, equity and turnover is less than minimum limit

Parameters:
maxCommission - commission for minimum deposit, equity and turnover

getMaxCommission

@Deprecated
public double getMaxCommission()
Deprecated. 

Returns commission for situations when deposit, equity and turnover is less than minimum limit

Returns:
commission for minimum deposit, equity and turnover

setLast30DaysTurnoverAtStart

@Deprecated
public void setLast30DaysTurnoverAtStart(double[] last30DaysTurnoverAtStart)
                                  throws java.lang.ArrayIndexOutOfBoundsException
Deprecated. 

Sets turnover values for the last 30 days that will be used at tester start time. Size of the array must be 30 elements

Parameters:
last30DaysTurnoverAtStart - turnover values for the last 30 days
Throws:
java.lang.ArrayIndexOutOfBoundsException - when array length is not 30

getLast30DaysTurnoverAtStart

@Deprecated
public double[] getLast30DaysTurnoverAtStart()
Deprecated. 

Returns turnover values for the last 30 days that will be used at tester start time. By default all values are zeros. Changing values in array will change values in Commissions class

Returns:
turnover values for the last 30 days

setDepositLimit

@Deprecated
public void setDepositLimit(double limit,
                                       double commission)
Deprecated. 

Sets limits for deposit amounts. If deposit amount at the commission calculation time is >= limit then it's value will be used. The biggest limit that complies the condition will be used to get the commission

Parameters:
limit - deposit amount limit
commission - commission to use when deposit amount is over the limit

getDepositLimits

@Deprecated
public java.util.SortedMap<java.lang.Double,java.lang.Double> getDepositLimits()
Deprecated. 

Returns all deposit limits. Changes in map will result in changes of the actual map of this class

Returns:
deposit limits

setEquityLimit

@Deprecated
public void setEquityLimit(double limit,
                                      double commission)
Deprecated. 

Sets limits for equity amounts. If equity amount at the commission calculation time is >= limit then it's value will be used. The biggest limit that complies the condition will be used to get the commission

Parameters:
limit - equity amount limit
commission - commission to use when equity amount is over the limit

getEquityLimits

@Deprecated
public java.util.SortedMap<java.lang.Double,java.lang.Double> getEquityLimits()
Deprecated. 

Returns all equity limits. Changes in map will result in changes of the actual map of this class

Returns:
equity limits

setTurnoverLimit

@Deprecated
public void setTurnoverLimit(double limit,
                                        double commission)
Deprecated. 

Sets limits for turnover amounts. If turnover amount at the commission calculation time is >= limit then it's value will be used. The biggest limit that complies the condition will be used to get the commission

Parameters:
limit - turnover amount limit
commission - commission to use when turnover amount is over the limit

getTurnoverLimits

@Deprecated
public java.util.SortedMap<java.lang.Double,java.lang.Double> getTurnoverLimits()
Deprecated. 

Returns all turnover limits. Changes in map will result in changes of the actual map of this class

Returns:
turnover limits

isCustodianBankOrGuarantee

@Deprecated
public boolean isCustodianBankOrGuarantee()
Deprecated. 

Returns true if deposit is with custodian bank or there is a bank guarantee. Once used in constructor to fill in correct levels, this field becomes only informational

Returns:
true if deposit is with custodian bank or there is a bank guarantee