public class OhlcvData
extends java.lang.Object
Constructor and Description |
---|
OhlcvData(java.util.Date time,
double high,
double low,
double open,
double close,
double volume) |
public OhlcvData(java.util.Date time, double high, double low, double open, double close, double volume)
time
- the time of the datahigh
- the highest price that was reached during this time period. This must be larger than
low, open and close.low
- the lowest price that was reached during this time period. This must be smaller than
high, open and close.open
- the price that the instrument opened this time period with.close
- the price that the instrument closed this time period with.volume
- the volume of trading during this time period.java.lang.IllegalArgumentException
- if high or low are not respectively the largest and smallest of the values (high,
low, open, close).java.lang.NullPointerException
- if time is null.public java.util.Date getTime()
public double getOpen()
public double getHigh()
public double getClose()
public double getLow()
public double getVolume()
public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support