pub struct BlockTradeLeg {
pub instrument_name: String,
pub price: f64,
pub amount: Option<f64>,
pub direction: OrderSide,
}Expand description
Single trade leg for block trade request
Represents one instrument in a block trade, specifying the instrument, price, amount, and direction.
Fields§
§instrument_name: StringInstrument name (e.g., “BTC-PERPETUAL”)
price: f64Price for this leg
amount: Option<f64>Trade amount (USD for perpetuals/inverse futures, base currency for options/linear)
direction: OrderSideDirection from the maker’s perspective
Implementations§
Trait Implementations§
Source§impl Clone for BlockTradeLeg
impl Clone for BlockTradeLeg
Source§fn clone(&self) -> BlockTradeLeg
fn clone(&self) -> BlockTradeLeg
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 BlockTradeLeg
impl Debug for BlockTradeLeg
Source§impl<'de> Deserialize<'de> for BlockTradeLeg
impl<'de> Deserialize<'de> for BlockTradeLeg
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
Source§impl Display for BlockTradeLeg
impl Display for BlockTradeLeg
Source§impl PartialEq for BlockTradeLeg
impl PartialEq for BlockTradeLeg
Source§impl Serialize for BlockTradeLeg
impl Serialize for BlockTradeLeg
impl StructuralPartialEq for BlockTradeLeg
Auto Trait Implementations§
impl Freeze for BlockTradeLeg
impl RefUnwindSafe for BlockTradeLeg
impl Send for BlockTradeLeg
impl Sync for BlockTradeLeg
impl Unpin for BlockTradeLeg
impl UnsafeUnpin for BlockTradeLeg
impl UnwindSafe for BlockTradeLeg
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