PriceService class abstract

not being used at the moment. see price_polling_service

Implementers

Constructors

PriceService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

currentPrice({String from, String to}) Future<Result<Price, String>>
retrieve current ratio of to currency to from currency. example: priceService(from:'BTC', to:'USD') -> 55234.654
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ping() Future<Result<bool, String>>
check coingecko service
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited