pub struct AlgoOrder {Show 17 fields
pub algo: String,
pub id: OrderId,
pub parent_id: Option<OrderId>,
pub create_time: DateTime<Utc>,
pub finish_time: Option<DateTime<Utc>>,
pub finish_success: Option<bool>,
pub status: AlgoOrderStatus,
pub status_details: Box<RawValue>,
pub reject_or_error_reason: Option<String>,
pub display_symbols: Option<Vec<String>>,
pub trader: UserId,
pub params: Box<RawValue>,
pub working_progress: Option<f64>,
pub num_sent_orders: u32,
pub num_open_orders: u32,
pub num_rejects: u32,
pub num_errors: u32,
}
Fields§
§algo: String
§id: OrderId
§parent_id: Option<OrderId>
§create_time: DateTime<Utc>
§finish_time: Option<DateTime<Utc>>
If the algo order is stopped, the time at which it was stopped.
finish_success: Option<bool>
If the algo order is stopped, whether the stop was successful.
status: AlgoOrderStatus
§status_details: Box<RawValue>
§reject_or_error_reason: Option<String>
If algo order status is rejected, contains the reject reason; for algo orders that finished unsuccessfully, contains the error reason.
display_symbols: Option<Vec<String>>
§trader: UserId
§params: Box<RawValue>
§working_progress: Option<f64>
Progress of the algo, 0.0 to 1.0, if computable
num_sent_orders: u32
§num_open_orders: u32
§num_rejects: u32
§num_errors: u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlgoOrder
impl<'de> Deserialize<'de> for AlgoOrder
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 AlgoOrder
impl JsonSchema for AlgoOrder
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 AlgoOrder
impl RefUnwindSafe for AlgoOrder
impl Send for AlgoOrder
impl Sync for AlgoOrder
impl Unpin for AlgoOrder
impl UnwindSafe for AlgoOrder
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