pub struct OwnTrade {Show 13 fields
pub trade_id: String,
pub order_tx_id: String,
pub position_trade_id: String,
pub pair: String,
pub time: OffsetDateTime,
pub trade_type: BuySell,
pub order_type: OrderType,
pub price: Decimal,
pub cost: Decimal,
pub fee: Decimal,
pub volume: Decimal,
pub margin: Decimal,
pub user_ref: Option<String>,
}
Expand description
A user’s trade
Fields§
§trade_id: String
§order_tx_id: String
§position_trade_id: String
§pair: String
§time: OffsetDateTime
§trade_type: BuySell
§order_type: OrderType
§price: Decimal
§cost: Decimal
§fee: Decimal
§volume: Decimal
§margin: Decimal
§user_ref: Option<String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OwnTrade
impl<'de> Deserialize<'de> for OwnTrade
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 OwnTrade
Auto Trait Implementations§
impl Freeze for OwnTrade
impl RefUnwindSafe for OwnTrade
impl Send for OwnTrade
impl Sync for OwnTrade
impl Unpin for OwnTrade
impl UnwindSafe for OwnTrade
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