ExchangeServer

Trait 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§

Required Methods§

Source

fn websocket_url() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ExchangeServer for BinanceServerFuturesUsd

Source§

const ID: ExchangeId = ExchangeId::BinanceFuturesUsd

Source§

impl ExchangeServer for BinanceServerSpot

Source§

const ID: ExchangeId = ExchangeId::BinanceSpot

Source§

impl ExchangeServer for BybitServerPerpetualsUsd

Source§

const ID: ExchangeId = ExchangeId::BybitPerpetualsUsd

Source§

impl ExchangeServer for BybitServerSpot

Source§

const ID: ExchangeId = ExchangeId::BybitSpot

Source§

impl ExchangeServer for GateioServerFuturesBtc

Source§

const ID: ExchangeId = ExchangeId::GateioFuturesBtc

Source§

impl ExchangeServer for GateioServerFuturesUsd

Source§

const ID: ExchangeId = ExchangeId::GateioFuturesUsd

Source§

impl ExchangeServer for GateioServerOptions

Source§

const ID: ExchangeId = ExchangeId::GateioOptions

Source§

impl ExchangeServer for GateioServerPerpetualsBtc

Source§

const ID: ExchangeId = ExchangeId::GateioPerpetualsBtc

Source§

impl ExchangeServer for GateioServerPerpetualsUsd

Source§

const ID: ExchangeId = ExchangeId::GateioPerpetualsUsd

Source§

impl ExchangeServer for GateioServerSpot

Source§

const ID: ExchangeId = ExchangeId::GateioSpot