pub struct OrderParams {
pub status: Option<OrderQueryStatus>,
pub limit: Option<u32>,
pub after: Option<DateTime<Utc>>,
pub until: Option<DateTime<Utc>>,
pub direction: Option<SortDirection>,
pub nested: Option<bool>,
pub symbols: Option<String>,
pub side: Option<OrderSide>,
}Expand description
Parameters for querying orders.
Fields§
§status: Option<OrderQueryStatus>Filter by order status (open, closed, all).
limit: Option<u32>Maximum number of orders to return (default 50, max 500).
after: Option<DateTime<Utc>>Filter orders created after this timestamp.
until: Option<DateTime<Utc>>Filter orders created until this timestamp.
direction: Option<SortDirection>Sort direction (asc or desc).
nested: Option<bool>Include nested leg orders for multi-leg orders.
symbols: Option<String>Comma-separated list of symbols to filter by.
side: Option<OrderSide>Filter by order side (buy or sell).
Implementations§
Source§impl OrderParams
impl OrderParams
Sourcepub fn status(self, status: OrderQueryStatus) -> Self
pub fn status(self, status: OrderQueryStatus) -> Self
Sets the status filter.
Sourcepub fn direction(self, direction: SortDirection) -> Self
pub fn direction(self, direction: SortDirection) -> Self
Sets the sort direction.
Trait Implementations§
Source§impl Debug for OrderParams
impl Debug for OrderParams
Source§impl Default for OrderParams
impl Default for OrderParams
Source§fn default() -> OrderParams
fn default() -> OrderParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderParams
impl<'de> Deserialize<'de> for OrderParams
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 OrderParams
impl RefUnwindSafe for OrderParams
impl Send for OrderParams
impl Sync for OrderParams
impl Unpin for OrderParams
impl UnwindSafe for OrderParams
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