exchange library

Classes

ExchangeRate
Collection of exchange rates: ExchangeRate.fromExchangeRate.to.
ExchangeRates
Container for ExchangeRate.
ExchangeRateTo
Single exchange rate value and updated timestamp

Properties

coinbaseCurrencies ↔ List<String>
http://api.coinbase.com/v2/currencies
read / write

Functions

defaultExchangeRatesUpdate(ExchangeRates rates) → void
Calls updateBtcToUsdWithCoinbase() and updateCurrenciesToBtcWithQtrade.
defaultUpdateBtcToCurrency(ExchangeRates rates) → void
Calls updateBtcToUsdWithCoinbase() with rate-limiting.
updateBtcToCurrencyWithCoinbase(String currencyCode, ExchangeRates rates, {bool rateLimit: false}) → void
Updates BTC → currency.
updateCruzToBtcWithQtrade(ExchangeRates rates, {bool rateLimit: false}) → void
Updates CRUZ → BTC.
updateCruzToBtcWithVinex(ExchangeRates rates, {bool rateLimit: false}) → void
Updates CRUZ → BTC.

Typedefs

ExchangeRatesCallback(ExchangeRates) → void