Struct barter::portfolio::order::OrderEvent [−][src]
pub struct OrderEvent {
pub event_type: &'static str,
pub trace_id: Uuid,
pub timestamp: DateTime<Utc>,
pub exchange: String,
pub symbol: String,
pub market_meta: MarketMeta,
pub decision: Decision,
pub quantity: f64,
pub order_type: OrderType,
}
Expand description
Orders are generated by the portfolio and detail work to be done by an execution::handler to execute a trade.
Fields
event_type: &'static str
trace_id: Uuid
timestamp: DateTime<Utc>
exchange: String
symbol: String
market_meta: MarketMeta
decision: Decision
quantity: f64
order_type: OrderType
Implementations
Returns a OrderEventBuilder instance.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more