pub enum FutOptChannel {
Trades,
Books,
Candles,
Aggregates,
}Expand description
FutOpt WebSocket channels
Available channels for futures and options market data streaming.
§Variants
Trades- Real-time trade data (成交明細)Books- Order book depth with bid/ask levels (五檔報價)Candles- OHLCV candlestick data (K線)Aggregates- Aggregated market statistics (統計資訊)
§Note
FutOpt does not have an Indices channel. The indices channel is
stock-market specific (e.g., TAIEX weighted index).
Variants§
Trades
Real-time trade data (成交明細)
Books
Order book depth with bid/ask levels (五檔報價)
Candles
OHLCV candlestick data (K線)
Aggregates
Aggregated market statistics (統計資訊)
Implementations§
Source§impl FutOptChannel
impl FutOptChannel
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
Get the string representation for WebSocket wire format
§Example
use marketdata_core::models::futopt::FutOptChannel;
assert_eq!(FutOptChannel::Trades.as_str(), "trades");
assert_eq!(FutOptChannel::Books.as_str(), "books");
assert_eq!(FutOptChannel::Candles.as_str(), "candles");
assert_eq!(FutOptChannel::Aggregates.as_str(), "aggregates");Trait Implementations§
Source§impl Clone for FutOptChannel
impl Clone for FutOptChannel
Source§fn clone(&self) -> FutOptChannel
fn clone(&self) -> FutOptChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FutOptChannel
impl Debug for FutOptChannel
Source§impl<'de> Deserialize<'de> for FutOptChannel
impl<'de> Deserialize<'de> for FutOptChannel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FutOptChannel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FutOptChannel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FutOptChannel
impl Display for FutOptChannel
Source§impl Hash for FutOptChannel
impl Hash for FutOptChannel
Source§impl PartialEq for FutOptChannel
impl PartialEq for FutOptChannel
Source§fn eq(&self, other: &FutOptChannel) -> bool
fn eq(&self, other: &FutOptChannel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FutOptChannel
impl Serialize for FutOptChannel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for FutOptChannel
impl Eq for FutOptChannel
impl StructuralPartialEq for FutOptChannel
Auto Trait Implementations§
impl Freeze for FutOptChannel
impl RefUnwindSafe for FutOptChannel
impl Send for FutOptChannel
impl Sync for FutOptChannel
impl Unpin for FutOptChannel
impl UnsafeUnpin for FutOptChannel
impl UnwindSafe for FutOptChannel
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.