com.dukascopy.api.system
Class Overnights

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

public class Overnights
extends Object
implements Serializable

Allows to set fixed overnight values for every Instrument

See Also:
Serialized Form

Field Summary
 Map<Instrument,Double> longValues
           
 Map<Instrument,Double> shortValues
           
 
Constructor Summary
Overnights()
          Creates Overnights object with all values set to 0.0
Overnights(boolean institutional)
          Creates Overnights object with default values (prices taken at 26.04.2010)
 
Method Summary
 Map<Instrument,Double> getLongOvernights()
          Returns Map with overnight long values for all instruments.
 Map<Instrument,Double> getShortOvernights()
          Returns Map with overnight shoft values for all instruments.
 boolean isInstitutional()
          Returns true if object contains institutional overnights
 void setOvernights(Instrument instrument, double longValue, double shortValue)
          Sets overnights for instrument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

longValues

public Map<Instrument,Double> longValues

shortValues

public Map<Instrument,Double> shortValues
Constructor Detail

Overnights

public Overnights()
Creates Overnights object with all values set to 0.0


Overnights

public Overnights(boolean institutional)
Creates Overnights object with default values (prices taken at 26.04.2010)

Parameters:
institutional - if true, then institutional prices will be filled in as defaults
Method Detail

setOvernights

public void setOvernights(Instrument instrument,
                          double longValue,
                          double shortValue)
Sets overnights for instrument

Parameters:
instrument - instrument
longValue - long value
shortValue - short value

getLongOvernights

public Map<Instrument,Double> getLongOvernights()
Returns Map with overnight long values for all instruments. Changing values in array will change values in Overnights class

Returns:
overnight values

getShortOvernights

public Map<Instrument,Double> getShortOvernights()
Returns Map with overnight shoft values for all instruments. Changing values in array will change values in Overnights class

Returns:
overnight values

isInstitutional

public boolean isInstitutional()
Returns true if object contains institutional overnights

Returns:
type ov overnight values


Copyright © 2011. All Rights Reserved.