pub enum OkxChannelType {
Public,
Private,
Business,
}Expand description
OKX WebSocket channel type.
OKX uses different WebSocket channels for different types of data:
Public- Market data streams (no authentication required)Private- Account data streams (authentication required)Business- Trade execution streams (authentication required)
Variants§
Public
Public channel for market data (tickers, orderbooks, trades).
No authentication required. Used for:
- Real-time ticker updates
- Order book snapshots and updates
- Public trade streams
- Candlestick/OHLCV data
Private
Private channel for account data.
Authentication required. Used for:
- Account balance updates
- Position updates
- Order status updates
Business
Business channel for trade execution.
Authentication required. Used for:
- Advanced order types
- Algo orders
- Grid trading
- Copy trading
Trait Implementations§
Source§impl Clone for OkxChannelType
impl Clone for OkxChannelType
Source§fn clone(&self) -> OkxChannelType
fn clone(&self) -> OkxChannelType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OkxChannelType
impl Debug for OkxChannelType
Source§impl Display for OkxChannelType
impl Display for OkxChannelType
Source§impl Hash for OkxChannelType
impl Hash for OkxChannelType
Source§impl PartialEq for OkxChannelType
impl PartialEq for OkxChannelType
impl Copy for OkxChannelType
impl Eq for OkxChannelType
impl StructuralPartialEq for OkxChannelType
Auto Trait Implementations§
impl Freeze for OkxChannelType
impl RefUnwindSafe for OkxChannelType
impl Send for OkxChannelType
impl Sync for OkxChannelType
impl Unpin for OkxChannelType
impl UnwindSafe for OkxChannelType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.