PriceService class
A service that handles the retrieval of market price information for XMR (Monero) using the Haveno gRPC API.
This service class interacts with the Haveno gRPC service through the HavenoChannel, sending requests to fetch the latest market prices for XMR. It also manages exceptions related to gRPC connections and operations.
The PriceService uses the GrpcErrorHandler
mixin to manage any errors
related to gRPC requests and responses.
Constructors
- PriceService()
- Creates a new PriceService instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- havenoChannel → HavenoChannel
-
The Haveno client used to communicate with the Haveno gRPC server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getXmrMarketPrices(
) → Future< List< MarketPriceInfo> ?> - Retrieves the current market prices for XMR (Monero) from the Haveno gRPC service.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited