pub trait LocalExchange {
// Required method
async fn query_zec_to_usd(
&self,
client: &Client,
) -> Result<ExchangeData, Error>;
}Available on crate feature
tor only.Expand description
An exchange that can be queried for ZEC data.
Required Methods§
Sourceasync fn query_zec_to_usd(&self, client: &Client) -> Result<ExchangeData, Error>
async fn query_zec_to_usd(&self, client: &Client) -> Result<ExchangeData, Error>
Queries data about the USD/ZEC pair.
The returned bid and ask data must be denominated in USD, i.e. the latest bid and ask for 1 ZEC.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".