pub enum Orderflow {
Show 16 variants
OrderPending(Order),
OrderAck(OrderAck),
OrderReject(OrderReject),
OrderOut(OrderOut),
OrderReconciledOut(OrderOut),
OrderStale(OrderStale),
CancelPending(Cancel),
CancelReject(CancelReject),
OrderCanceling(OrderCanceling),
OrderCanceled(OrderCanceled),
ModifyPending(Modify),
ModifyReject(ModifyReject),
OrderModified(OrderModified),
Fill(Fill),
AberrantFill(AberrantFill),
DescendantFill(Fill),
}Expand description
Variants§
OrderPending(Order)
OrderAck(OrderAck)
OrderReject(OrderReject)
OrderOut(OrderOut)
OrderReconciledOut(OrderOut)
OrderStale(OrderStale)
CancelPending(Cancel)
CancelReject(CancelReject)
OrderCanceling(OrderCanceling)
OrderCanceled(OrderCanceled)
ModifyPending(Modify)
ModifyReject(ModifyReject)
OrderModified(OrderModified)
Fill(Fill)
AberrantFill(AberrantFill)
DescendantFill(Fill)
For parent algos with child algos, the parent algo will also receive copies of fills from its descendants. The fills will be modified such that their order_id is set to the immediate child algo’s order ID.
For example, suppose algo order A spawns child algo order B, whose suborder O receives fill F. F’s order_id is O. A should also hear about this fill as a DescendantFill F_desc where F_desc’s order_id is B.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Orderflow
impl<'de> Deserialize<'de> for Orderflow
Source§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
Source§impl JsonSchema for Orderflow
impl JsonSchema for Orderflow
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Orderflow
impl RefUnwindSafe for Orderflow
impl Send for Orderflow
impl Sync for Orderflow
impl Unpin for Orderflow
impl UnwindSafe for Orderflow
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