pub struct Trade {
pub id: String,
pub order_id: String,
pub client_order_id: Option<String>,
pub timestamp: u64,
pub market: String,
pub side: Side,
pub amount: String,
pub price: String,
pub taker: Option<bool>,
pub fee: Option<String>,
pub fee_currency: Option<String>,
pub settled: Option<bool>,
}Expand description
A private trade (an execution of one of your orders).
Fields§
§id: String§order_id: String§client_order_id: Option<String>§timestamp: u64§market: String§side: Side§amount: String§price: String§taker: Option<bool>§fee: Option<String>§fee_currency: Option<String>§settled: Option<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
Auto Trait Implementations§
impl Freeze for Trade
impl RefUnwindSafe for Trade
impl Send for Trade
impl Sync for Trade
impl Unpin for Trade
impl UnsafeUnpin 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