use super::{Bybit, ExchangeServer};
use barter_instrument::exchange::ExchangeId;
use std::fmt::Display;
pub const WEBSOCKET_BASE_URL_BYBIT_SPOT: &str = "wss://stream.bybit.com/v5/public/spot";
pub type BybitSpot = Bybit<BybitServerSpot>;
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default)]
pub struct BybitServerSpot;
impl ExchangeServer for BybitServerSpot {
const ID: ExchangeId = ExchangeId::BybitSpot;
fn websocket_url() -> &'static str {
WEBSOCKET_BASE_URL_BYBIT_SPOT
}
}
impl Display for BybitSpot {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BybitSpot")
}
}