pub struct Trade {
pub trade_id: TradeId,
pub side: Side,
pub total: u128,
pub quantity: u64,
pub price: u64,
pub timestamp: u128,
pub trader_side: Option<TraderSide>,
pub maker: Option<Identity>,
pub taker: Option<Identity>,
}Expand description
A trade from the API.
The side field is the maker’s order side — both maker and taker see
the same value. To determine your own direction, combine side with
trader_side.
Fields§
§trade_id: TradeId§side: SideThe maker’s order side (Buy or Sell).
total: u128§quantity: u64§price: u64§timestamp: u128Trade execution timestamp (milliseconds since epoch).
trader_side: Option<TraderSide>The querying account’s role. Only present on account-scoped trade queries.
maker: Option<Identity>§taker: Option<Identity>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 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