Trait barter_data::exchange::ExchangeServer
source · pub trait ExchangeServer: Default + Debug + Clone + Send {
const ID: ExchangeId;
// Required method
fn websocket_url() -> &'static str;
}Expand description
Used when an exchange has servers different
InstrumentKind market data on distinct servers,
allowing all the Connector logic to be identical apart from what this trait provides.
§Examples
Required Associated Constants§
const ID: ExchangeId
Required Methods§
fn websocket_url() -> &'static str
Object Safety§
This trait is not object safe.