pub struct PlaceOrderRequest {
pub id: Option<OrderId>,
pub parent_id: Option<OrderId>,
pub symbol: String,
pub dir: Dir,
pub quantity: Decimal,
pub trader: Option<TraderIdOrEmail>,
pub account: Option<AccountIdOrName>,
pub order_type: OrderType,
pub time_in_force: TimeInForce,
pub source: Option<OrderSource>,
pub execution_venue: Option<ExecutionVenue>,
}Expand description
Fields§
§id: Option<OrderId>If not specified, one will be generated for you; note, in that case, you won’t know for sure if the specific request went through.
parent_id: Option<OrderId>§symbol: String§dir: Dir§quantity: Decimal§trader: Option<TraderIdOrEmail>§account: Option<AccountIdOrName>§order_type: OrderType§time_in_force: TimeInForce§source: Option<OrderSource>§execution_venue: Option<ExecutionVenue>Trait Implementations§
Source§impl Clone for PlaceOrderRequest
impl Clone for PlaceOrderRequest
Source§fn clone(&self) -> PlaceOrderRequest
fn clone(&self) -> PlaceOrderRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlaceOrderRequest
impl Debug for PlaceOrderRequest
Source§impl<'de> Deserialize<'de> for PlaceOrderRequest
impl<'de> Deserialize<'de> for PlaceOrderRequest
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 PlaceOrderRequest
impl JsonSchema for PlaceOrderRequest
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 moreSource§impl PartialEq for PlaceOrderRequest
impl PartialEq for PlaceOrderRequest
Source§impl Serialize for PlaceOrderRequest
impl Serialize for PlaceOrderRequest
impl Eq for PlaceOrderRequest
impl StructuralPartialEq for PlaceOrderRequest
Auto Trait Implementations§
impl Freeze for PlaceOrderRequest
impl RefUnwindSafe for PlaceOrderRequest
impl Send for PlaceOrderRequest
impl Sync for PlaceOrderRequest
impl Unpin for PlaceOrderRequest
impl UnwindSafe for PlaceOrderRequest
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