ForexUnit

public class ForexUnit

One open-high-low-close bar of a foreign exchange series, covering whichever span the requested cadence samples at — a minute, a day, a week or a month.

All four prices are exchange rates in the same direction as the request that produced them: units of the to-symbol per one unit of the from-symbol, so a bar from a EUR to USD request reads as dollars per euro. There is no volume field because Alpha Vantage does not report one for currency pairs.

Author

Sylvester Sefa-Yeboah

Since

1.0.0

Types

Link copied to clipboard
public class Builder
Assembles a single bar field by field.

Properties

Link copied to clipboard
public double close
Link copied to clipboard
public String date
Link copied to clipboard
public double high
Link copied to clipboard
public double low
Link copied to clipboard
public double open

Functions

Link copied to clipboard
public double getClose()
Gets the exchange rate at the end of this bar's span.
Link copied to clipboard
public String getDate()
Gets the timestamp identifying this bar, in the timezone getTimeZone reports.
Link copied to clipboard
public double getHigh()
Gets the highest exchange rate reached within this bar's span.
Link copied to clipboard
public double getLow()
Gets the lowest exchange rate reached within this bar's span.
Link copied to clipboard
public double getOpen()
Gets the exchange rate at the start of this bar's span.
Link copied to clipboard
public String toString()