pub struct LegPrice {
pub instrument_name: String,
pub direction: String,
pub price: f64,
pub ratio: i64,
}Expand description
Individual leg price in response
Contains the calculated price and ratio for a single leg.
Fields§
§instrument_name: StringInstrument name for this leg
direction: StringDirection: “buy” or “sell”
price: f64Calculated price for this leg
ratio: i64Ratio of amount between legs
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LegPrice
impl<'de> Deserialize<'de> for LegPrice
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 LegPrice
Auto Trait Implementations§
impl Freeze for LegPrice
impl RefUnwindSafe for LegPrice
impl Send for LegPrice
impl Sync for LegPrice
impl Unpin for LegPrice
impl UnsafeUnpin for LegPrice
impl UnwindSafe for LegPrice
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