CoingeckoPriceService class
Properties
-
coingecko
→ CoinGeckoApi
-
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
logger
→ Logger
-
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
currentPrice({String from = 'ada', String to = 'usd'})
→ Future<Result<Price, String>>
-
retrieve current ratio of to currency to from currency.
example: priceService(from:'BTC', to:'USD') -> 55234.654
override
-
list()
→ Future<Result<Map<String, String>, String>>
-
list all coins supported by price service
returns map where the key is the ticker and the value is the crypto's name
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
ping()
→ Future<Result<bool, String>>
-
check coingecko service
override
-
toString()
→ String
-
A string representation of this object.
inherited