pub struct WebSockets { /* private fields */ }Implementations§
Source§impl WebSockets
impl WebSockets
pub fn new(api_key: Option<String>, secret_key: Option<String>) -> WebSockets
pub fn connect(&mut self) -> Result<()>
pub fn disconnect(&mut self) -> Result<()>
pub fn add_event_handler<H>(&mut self, handler: H)where
H: EventHandler + 'static,
pub fn ping(&mut self)
pub fn subscribe_ticker<S>(&mut self, symbol: S)
pub fn subscribe_trades<S>(&mut self, symbol: S)
pub fn subscribe_orderbook_grouped<S>(&mut self, symbol: S, group: i64)
pub fn subscribe_orderbook<S>(&mut self, symbol: S)
pub fn unsubscribe( &mut self, channel: String, symbol: Option<String>, grouping: Option<i64>, )
pub fn login(&mut self)
pub fn subscribe_fills(&mut self)
pub fn subscribe_orders(&mut self)
pub fn subscribe_ftxpay(&mut self)
pub fn event_loop(&mut self) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for WebSockets
impl !Send for WebSockets
impl !Sync for WebSockets
impl !UnwindSafe for WebSockets
impl Freeze for WebSockets
impl Unpin for WebSockets
impl UnsafeUnpin for WebSockets
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more