pub struct Order {Show 25 fields
pub id: Option<Uuid>,
pub client_order_id: Uuid,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub submitted_at: Option<DateTime<Utc>>,
pub filled_at: Option<DateTime<Utc>>,
pub expired_at: Option<DateTime<Utc>>,
pub canceled_at: Option<DateTime<Utc>>,
pub failed_at: Option<DateTime<Utc>>,
pub replaced_at: Option<DateTime<Utc>>,
pub replaces: Option<Uuid>,
pub asset_id: Uuid,
pub symbol: String,
pub asset_class: String,
pub qty: String,
pub filled_qty: String,
pub side: String,
pub order_type: String,
pub time_in_force: String,
pub limit_price: Option<Decimal>,
pub stop_price: Option<Decimal>,
pub filled_avg_price: Option<Decimal>,
pub status: String,
pub extended_hours: bool,
pub legs: Option<String>,
}
Fields§
§id: Option<Uuid>
§client_order_id: Uuid
§created_at: Option<DateTime<Utc>>
§updated_at: Option<DateTime<Utc>>
§submitted_at: Option<DateTime<Utc>>
§filled_at: Option<DateTime<Utc>>
§expired_at: Option<DateTime<Utc>>
§canceled_at: Option<DateTime<Utc>>
§failed_at: Option<DateTime<Utc>>
§replaced_at: Option<DateTime<Utc>>
§replaces: Option<Uuid>
§asset_id: Uuid
§symbol: String
§asset_class: String
§qty: String
§filled_qty: String
§side: String
§order_type: String
§time_in_force: String
§limit_price: Option<Decimal>
§stop_price: Option<Decimal>
§filled_avg_price: Option<Decimal>
§status: String
§extended_hours: bool
§legs: Option<String>
Implementations§
Source§impl Order
impl Order
pub fn get_all(client: &Client) -> Vec<Order>
pub fn place(client: &Client, _order: Order) -> Order
pub fn get(client: &Client, id: Uuid) -> Order
pub fn replace(client: &Client, _order: Order) -> Order
pub fn cancel(client: &Client, id: Uuid)
pub fn cancel_all(client: &Client)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
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
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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