#[non_exhaustive]pub struct BlockLeg {Show 13 fields
pub inst_id: String,
pub td_mode: String,
pub ccy: String,
pub sz: NumberString,
pub side: String,
pub pos_side: String,
pub px: NumberString,
pub trade_id: String,
pub tgt_ccy: String,
pub fee: NumberString,
pub fee_ccy: String,
pub trade_quote_ccy: String,
pub extra: ExtraFields,
}Expand description
A leg embedded in block RFQ, quote, and structure-block-trade messages.
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 of this leg, e.g., BTC-USD-240329-40000-C.
td_mode: StringTrade mode: cross, isolated, or cash.
ccy: StringMargin currency (cross MARGIN orders in Futures mode only).
sz: NumberStringLeg size in base currency or contracts.
side: StringLeg side: buy or sell.
pos_side: StringPosition side: long, short, or net.
px: NumberStringLeg price.
trade_id: StringTrade ID for this leg (only present after execution).
tgt_ccy: StringTarget currency for the leg quantity (spot only): base_ccy or quote_ccy.
fee: NumberStringFee charged for this leg (negative means deducted; positive means rebate).
fee_ccy: StringFee currency for this leg.
trade_quote_ccy: StringThe quote currency used for trading (spot only).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BlockLeg
impl<'de> Deserialize<'de> for BlockLeg
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 BlockLeg
impl RefUnwindSafe for BlockLeg
impl Send for BlockLeg
impl Sync for BlockLeg
impl Unpin for BlockLeg
impl UnsafeUnpin for BlockLeg
impl UnwindSafe for BlockLeg
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