HistoricalDaily
, HistoricalData
, HistoricalHourly
, HistoricalMinute
public interface HistoricalBase
Modifier and Type | Method | Description |
---|---|---|
int |
getAggregate() |
gets the aggregate parameter this object uses for the CryptoCompare API
|
ConversionType |
getConversionType() |
gets the ConversionType for this object
|
TimestampedData |
getDataAtTime(long unixTimestamp) |
gets the TimestampedData with unix timestamp equal to unixTimestamp.
If the unixTimestamp is in between two unix timestamps then the latter TimestampedData is returned. |
java.util.stream.Stream<TimestampedData> |
getDataStream() |
streams TimestampedData from this Historical object
|
long |
getLastUnixTimestamp() |
gets the toTs parameter this object uses for the CryptoCompare API
|
int |
getLimit() |
gets the limit parameter this object uses for the CryptoCompare API
|
java.lang.String |
getResponse() |
|
long |
getTimeFrom() |
|
long |
getTimeTo() |
|
float |
getType() |
|
boolean |
isAggregated() |
|
boolean |
isFirstValueInArray() |
|
void |
setAggregate(int aggregate) |
sets the aggregate parameter this object uses for the CryptoCompare API
|
void |
setLastUnixTimestamp(long lastUnixTimestamp) |
sets the toTs parameter this object uses for the CryptoCompare API
|
void |
setLimit(int limit) |
sets the limit parameter this object uses for the CryptoCompare API
|
long getLastUnixTimestamp()
void setLastUnixTimestamp(long lastUnixTimestamp)
lastUnixTimestamp
- the last unix timestamp to get data forint getAggregate()
void setAggregate(int aggregate)
aggregate
- time period to aggregate the data overint getLimit()
void setLimit(int limit)
limit
- The number of TimestampedData to returnjava.lang.String getResponse()
float getType()
boolean isAggregated()
long getTimeTo()
long getTimeFrom()
boolean isFirstValueInArray()
ConversionType getConversionType()
ConversionType
java.util.stream.Stream<TimestampedData> getDataStream()
TimestampedData
TimestampedData getDataAtTime(long unixTimestamp) throws TimestampOutOfBoundsException
unixTimestamp
- unix timestamp of TimestampedData to getTimestampOutOfBoundsException
TimestampedData