pub struct LegInput {
pub instrument_name: String,
pub amount: f64,
pub direction: String,
}Expand description
Leg input for get_leg_prices endpoint
Specifies the parameters for calculating individual leg prices.
Fields§
§instrument_name: StringInstrument name for this leg
amount: f64Trade amount. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.
direction: StringDirection of the leg: “buy” or “sell”
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LegInput
impl<'de> Deserialize<'de> for LegInput
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
impl StructuralPartialEq for LegInput
Auto Trait Implementations§
impl Freeze for LegInput
impl RefUnwindSafe for LegInput
impl Send for LegInput
impl Sync for LegInput
impl Unpin for LegInput
impl UnsafeUnpin for LegInput
impl UnwindSafe for LegInput
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