pub struct Trade {
pub id: String,
pub buyer_order_id: Option<String>,
pub seller_order_id: Option<String>,
pub market_pair: String,
pub price: Decimal,
pub qty: Decimal,
pub fees: Option<Decimal>,
pub side: Side,
pub liquidity: Option<Liquidity>,
pub created_at: String,
}
Expand description
This struct represents a trade
Fields§
§id: String
§buyer_order_id: Option<String>
§seller_order_id: Option<String>
§market_pair: String
§price: Decimal
§qty: Decimal
§fees: Option<Decimal>
§side: Side
§liquidity: Option<Liquidity>
§created_at: String
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trade
impl<'de> Deserialize<'de> for Trade
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Trade, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Trade, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TradeHistory> for Trade
impl From<TradeHistory> for Trade
Source§fn from(trade_history: TradeHistory) -> Trade
fn from(trade_history: TradeHistory) -> Trade
Converts to this type from the input type.
Source§impl From<TradeMessage> for Trade
impl From<TradeMessage> for Trade
Source§fn from(trade: TradeMessage) -> Trade
fn from(trade: TradeMessage) -> Trade
Converts to this type from the input type.
Source§impl Serialize for Trade
impl Serialize for Trade
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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