CryptoUnit

public class CryptoUnit

One open-high-low-close-volume bar of a digital currency time series, priced in the market the request asked for. Any field the API omitted is null.

Author

Sylvester Sefa-Yeboah

Since

1.0.0

Constructors

Link copied to clipboard
public void CryptoUnit(CryptoUnit.Builder builder)
Creates a bar from the given builder's values.

Types

Link copied to clipboard
public class Builder
Collects a bar's open-high-low-close-volume values and assembles them into a CryptoUnit.

Properties

Link copied to clipboard
public final Double close
The bar's closing price, in the market currency the request asked for.
Link copied to clipboard
public final Double high
The bar's highest price, in the market currency the request asked for.
Link copied to clipboard
public final Double low
The bar's lowest price, in the market currency the request asked for.
Link copied to clipboard
public final Double open
The bar's opening price, in the market currency the request asked for.
Link copied to clipboard
public final Double volume
The amount of the digital currency traded during the bar.

Functions

Link copied to clipboard
public Double getClose()
Returns the bar's closing price.
Link copied to clipboard
public Double getHigh()
Returns the bar's highest price.
Link copied to clipboard
public Double getLow()
Returns the bar's lowest price.
Link copied to clipboard
public Double getOpen()
Returns the bar's opening price.
Link copied to clipboard
public Double getVolume()
Returns the amount of the digital currency traded during the bar.
Link copied to clipboard
public String toString()