#[non_exhaustive]pub struct PublicBlockTradeUpdate {
pub inst_id: String,
pub trade_id: String,
pub px: NumberString,
pub sz: NumberString,
pub side: String,
pub fill_vol: NumberString,
pub fwd_px: NumberString,
pub idx_px: NumberString,
pub mark_px: NumberString,
pub group_id: String,
pub ts: NumberString,
pub extra: ExtraFields,
}Expand description
Public block-trade channel row (public-block-trades).
Each push represents a single filled instrument trade.
OKX docs: https://www.okx.com/docs-v5/en/#block-trading-websocket-public-block-trades-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_id: StringInstrument ID, e.g., BTC-USD-231020-5000-P.
trade_id: StringTrade ID.
px: NumberStringFill price.
sz: NumberStringFill size.
side: StringFill side: buy or sell (taker perspective).
fill_vol: NumberStringImplied volatility (options only).
fwd_px: NumberStringForward price (options only).
idx_px: NumberStringIndex price (futures / swap / option).
mark_px: NumberStringMark price (futures / swap / option).
group_id: StringGroup RFQ ID; empty for normal trades.
ts: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for PublicBlockTradeUpdate
impl Clone for PublicBlockTradeUpdate
Source§fn clone(&self) -> PublicBlockTradeUpdate
fn clone(&self) -> PublicBlockTradeUpdate
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 PublicBlockTradeUpdate
impl Debug for PublicBlockTradeUpdate
Source§impl Default for PublicBlockTradeUpdate
impl Default for PublicBlockTradeUpdate
Source§fn default() -> PublicBlockTradeUpdate
fn default() -> PublicBlockTradeUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PublicBlockTradeUpdate
impl<'de> Deserialize<'de> for PublicBlockTradeUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PublicBlockTradeUpdate
impl RefUnwindSafe for PublicBlockTradeUpdate
impl Send for PublicBlockTradeUpdate
impl Sync for PublicBlockTradeUpdate
impl Unpin for PublicBlockTradeUpdate
impl UnsafeUnpin for PublicBlockTradeUpdate
impl UnwindSafe for PublicBlockTradeUpdate
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