Skip to main content

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".

Implementors§

Source§

impl ExchangeServer for AlpacaServerCrypto

Source§

const ID: ExchangeId = ExchangeId::AlpacaCrypto

Source§

impl ExchangeServer for AlpacaServerIex

Source§

const ID: ExchangeId = ExchangeId::AlpacaIex

Source§

impl ExchangeServer for AlpacaServerSip

Source§

const ID: ExchangeId = ExchangeId::AlpacaSip

Source§

impl ExchangeServer for BinanceServerFuturesUsd

Source§

const ID: ExchangeId = ExchangeId::BinanceFuturesUsd

Source§

impl ExchangeServer for BinanceServerFuturesUsdMarket

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

Source§

impl ExchangeServer for LseServerCfd

Source§

const ID: ExchangeId = ExchangeId::LseCfd

Source§

impl ExchangeServer for LseServerCrypto

Source§

const ID: ExchangeId = ExchangeId::LseCrypto

Source§

impl ExchangeServer for LseServerEquities

Source§

const ID: ExchangeId = ExchangeId::LseEquities

Source§

impl ExchangeServer for LseServerFutures

Source§

const ID: ExchangeId = ExchangeId::LseFutures

Source§

impl ExchangeServer for LseServerFx

Source§

const ID: ExchangeId = ExchangeId::LseFx

Source§

impl ExchangeServer for LseServerOptions

Source§

const ID: ExchangeId = ExchangeId::LseOptions

Source§

impl ExchangeServer for MassiveServerCrypto

Source§

const ID: ExchangeId = ExchangeId::MassiveCrypto

Source§

impl ExchangeServer for MassiveServerForex

Source§

const ID: ExchangeId = ExchangeId::MassiveForex

Source§

impl ExchangeServer for MassiveServerOptions

Source§

const ID: ExchangeId = ExchangeId::MassiveOptions

Source§

impl ExchangeServer for MassiveServerStocks

Source§

const ID: ExchangeId = ExchangeId::MassiveStocks