Struct openlimits_exchange::model::trade::Trade [−][src]
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: Stringbuyer_order_id: Option<String>seller_order_id: Option<String>market_pair: Stringprice: Decimalqty: Decimalfees: Option<Decimal>side: Sideliquidity: Option<Liquidity>created_at: StringImplementations
Trait Implementations
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 RefUnwindSafe for Trade
impl UnwindSafe for Trade
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more