acta_maker_sdk/ws/maker/
mod.rs1mod data;
4mod outcome;
5mod quote;
6
7pub use data::{MakerDataClient, MakerDataRequest, MakerDataRequestError, MakerResponse};
8pub use outcome::{QuoteLossReason, QuoteOutcome, QuoteOutcomeTracker, QuoteUnknownReason};
9pub use quote::MakerQuoteClient;
10
11use crate::ws::managed::{MakerWsEndpoint, ManagedWsConfigError};
12
13#[derive(Debug, thiserror::Error)]
14#[non_exhaustive]
15pub enum MakerClientError {
16 #[error("{client} requires the {required:?} endpoint, got {actual:?}")]
17 WrongEndpoint {
18 client: &'static str,
19 required: MakerWsEndpoint,
20 actual: MakerWsEndpoint,
21 },
22 #[error(transparent)]
23 InvalidConfig(#[from] ManagedWsConfigError),
24}