pub struct Trade {Show 14 fields
pub order_tx_id: String,
pub post_xid: String,
pub pair: String,
pub time: f64,
pub side: BuySell,
pub order_type: TradeType,
pub price: Decimal,
pub cost: Decimal,
pub fee: Decimal,
pub volume: Decimal,
pub margin: Decimal,
pub misc: String,
pub ledgers: Option<Vec<String>>,
pub maker: bool,
}
Expand description
A private trade
Includes fees paid, ledger entries, related order and position ids, etc.
Fields§
§order_tx_id: String
§post_xid: String
§pair: String
§time: f64
§side: BuySell
§order_type: TradeType
§price: Decimal
§cost: Decimal
§fee: Decimal
§volume: Decimal
§margin: Decimal
§misc: String
§ledgers: Option<Vec<String>>
§maker: bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
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 Trade
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnwindSafe for Trade
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