CryptoBaseExchange
CryptoData
, CryptoInfo
, HistoricalDaily
, HistoricalData
, HistoricalHourly
, HistoricalMinute
public interface CryptoBase
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
dataToString() |
returns a string representation of the data retrieved from the CryptoCompare
API
|
java.lang.String |
getCurrencyFrom() |
gets the fsym(s) parameter this object uses for the CryptoCompare API
|
java.lang.String |
getCurrencyTo() |
gets the tsym(s) parameter this object uses for the CryptoCompare API
|
java.net.URL |
getURL() |
gets the CryptoCompare API end point url with parameters
|
void |
setCurrencyFrom(java.lang.String currencyFrom) |
sets the fsym(s) parameter this object uses for the CryptoCompare API
|
void |
setCurrencyTo(java.lang.String currencyTo) |
sets the tsym(s) parameter this object uses for the CryptoCompare API
|
void |
update() |
updates url and gets data from the CryptoCompare API
|
java.lang.String getCurrencyFrom()
void setCurrencyFrom(java.lang.String currencyFrom)
currencyFrom
- currency symbol to convert fromjava.lang.String getCurrencyTo()
void setCurrencyTo(java.lang.String currencyTo)
currencyTo
- currency symbol to convert tovoid update() throws InvalidArgumentException
InvalidArgumentException
java.net.URL getURL()
java.lang.String dataToString()