public class Commissions extends Object implements Serializable
Constructor and Description |
---|
Commissions(boolean custodianBankOrGuarantee)
Creates Commissions object with default values
|
Modifier and Type | Method and Description |
---|---|
SortedMap<Double,Double> |
getDepositLimits()
Returns all deposit limits.
|
SortedMap<Double,Double> |
getEquityLimits()
Returns all equity limits.
|
double[] |
getLast30DaysTurnoverAtStart()
Returns turnover values for the last 30 days that will be used at tester start time.
|
double |
getMaxCommission()
Returns commission for situations when deposit, equity and turnover is less than minimum limit
|
SortedMap<Double,Double> |
getTurnoverLimits()
Returns all turnover limits.
|
boolean |
isCustodianBankOrGuarantee()
Returns true if deposit is with custodian bank or there is a bank guarantee.
|
void |
setDepositLimit(double limit,
double commission)
Sets limits for deposit amounts.
|
void |
setEquityLimit(double limit,
double commission)
Sets limits for equity amounts.
|
void |
setLast30DaysTurnoverAtStart(double[] last30DaysTurnoverAtStart)
Sets turnover values for the last 30 days that will be used at tester start time.
|
void |
setMaxCommission(double maxCommission)
Sets commission for situations when deposit, equity and turnover is less than minimum limit
|
void |
setTurnoverLimit(double limit,
double commission)
Sets limits for turnover amounts.
|
public Commissions(boolean custodianBankOrGuarantee)
custodianBankOrGuarantee
- if true then deposit with custodian bank or bank guarantee is assumedpublic void setMaxCommission(double maxCommission)
maxCommission
- commission for minimum deposit, equity and turnoverpublic double getMaxCommission()
public void setLast30DaysTurnoverAtStart(double[] last30DaysTurnoverAtStart) throws ArrayIndexOutOfBoundsException
last30DaysTurnoverAtStart
- turnover values for the last 30 daysArrayIndexOutOfBoundsException
- when array length is not 30public double[] getLast30DaysTurnoverAtStart()
public void setDepositLimit(double limit, double commission)
limit
- deposit amount limitcommission
- commission to use when deposit amount is over the limitpublic SortedMap<Double,Double> getDepositLimits()
public void setEquityLimit(double limit, double commission)
limit
- equity amount limitcommission
- commission to use when equity amount is over the limitpublic SortedMap<Double,Double> getEquityLimits()
public void setTurnoverLimit(double limit, double commission)
limit
- turnover amount limitcommission
- commission to use when turnover amount is over the limitpublic SortedMap<Double,Double> getTurnoverLimits()
public boolean isCustodianBankOrGuarantee()
Copyright © 2016. All rights reserved.