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 strtrace_id: Uuidtimestamp: DateTime<Utc>exchange: Stringsymbol: Stringmarket_meta: MarketMetadecision: Decisionquantity: f64order_type: OrderType

Implementations

Returns a OrderEventBuilder instance.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.