Struct openlimits_exchange::model::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: u64,
}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: u64Implementations
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
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self