public class CryptocurrencyStreamer
extends java.lang.Object
Cryptocurrency
Constructor | Description |
---|---|
CryptocurrencyStreamer() |
Modifier and Type | Method | Description |
---|---|---|
static java.util.stream.Stream<Cryptocurrency> |
streamAllCurrencies() |
streams all Cryptocurrency objects by connecting to the
All the Coins end point.
|
static java.util.stream.Stream<java.lang.Double> |
streamCryptoPrice(java.lang.String[] cryptosFrom,
java.lang.String... fiatsTo) |
streams multiple Cryptocurrency/fiat pair prices in the order in which they
are listed by connecting to the
Multiple Symbols Price end point.
|
static java.util.stream.Stream<java.lang.Double> |
streamCryptoPrice(java.lang.String cryptoFrom,
java.lang.String... fiatsTo) |
streams Cryptocurrency fiat prices in the order in which the fiats are listed
by connecting to the
Single Symbol Price end point.
|
static java.util.stream.Stream<Cryptocurrency> |
streamCurrencies(java.lang.String... symbols) |
streams Cryptocurrency objects in the order given by connecting to the
All the Coins end point.
|
public static java.util.stream.Stream<Cryptocurrency> streamCurrencies(java.lang.String... symbols)
symbols
- array of Cryptocurrency symbols to streampublic static java.util.stream.Stream<Cryptocurrency> streamAllCurrencies()
public static java.util.stream.Stream<java.lang.Double> streamCryptoPrice(java.lang.String cryptoFrom, java.lang.String... fiatsTo)
cryptoFrom
- cryptocurrency symbol to convert fromfiatsTo
- array of fiat currencies to convert topublic static java.util.stream.Stream<java.lang.Double> streamCryptoPrice(java.lang.String[] cryptosFrom, java.lang.String... fiatsTo)
cryptosFrom
- array of cryptocurrency symbols to convert fromfiatsTo
- array of fiat currencies to convert to