pub struct KrxA3B6G7Event {
pub fields: Vec<String>,
pub timestamp_ns: u64,
pub symbol: String,
pub event_type: KrxEventType,
}Expand description
KRX A3B6G7 event - contains all 160+ fields
Fields§
§fields: Vec<String>Raw field values indexed by position
timestamp_ns: u64Parsed timestamp in nanoseconds
symbol: StringSymbol code
event_type: KrxEventTypeEvent type
Implementations§
Source§impl KrxA3B6G7Event
impl KrxA3B6G7Event
Sourcepub fn to_orderbook_snapshot(
&self,
adapter: &KrxA3B6G7Adapter,
) -> Option<OrderBookSnapshot>
pub fn to_orderbook_snapshot( &self, adapter: &KrxA3B6G7Adapter, ) -> Option<OrderBookSnapshot>
Convert to OrderBookSnapshot if this is an orderbook event
Sourcepub fn to_trade_tick(&self, adapter: &KrxA3B6G7Adapter) -> Option<TradeTick>
pub fn to_trade_tick(&self, adapter: &KrxA3B6G7Adapter) -> Option<TradeTick>
Convert to TradeTick if this is a trade event
Sourcepub fn get_field(
&self,
field_name: &str,
adapter: &KrxA3B6G7Adapter,
) -> Option<&str>
pub fn get_field( &self, field_name: &str, adapter: &KrxA3B6G7Adapter, ) -> Option<&str>
Get a specific field value by name (Korean or English)
Sourcepub fn get_market_stats(
&self,
adapter: &KrxA3B6G7Adapter,
) -> Option<MarketStats>
pub fn get_market_stats( &self, adapter: &KrxA3B6G7Adapter, ) -> Option<MarketStats>
Get market statistics if available
Trait Implementations§
Source§impl Clone for KrxA3B6G7Event
impl Clone for KrxA3B6G7Event
Source§fn clone(&self) -> KrxA3B6G7Event
fn clone(&self) -> KrxA3B6G7Event
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KrxA3B6G7Event
impl RefUnwindSafe for KrxA3B6G7Event
impl Send for KrxA3B6G7Event
impl Sync for KrxA3B6G7Event
impl Unpin for KrxA3B6G7Event
impl UnwindSafe for KrxA3B6G7Event
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more