pub struct OrderQuery { /* private fields */ }Expand description
Provider-native request, response, order, position, trade, and market-data models. Provider-native request, response, order, position, trade, and market-data models. Provider-native request, response, order, position, trade, and market-data models. Filtered, paginated order-query parameters.
Construct this request with OrderQuery::builder. Unlike
Client::search_open_orders, the v2
query can explicitly include OrderStatus::Suspended bracket children.
Implementations§
Source§impl OrderQuery
impl OrderQuery
Sourcepub fn builder(account_id: AccountId) -> OrderQueryBuilder
pub fn builder(account_id: AccountId) -> OrderQueryBuilder
Starts a validated v2 order query for an account.
Sourcepub const fn account_id(&self) -> AccountId
pub const fn account_id(&self) -> AccountId
Returns the provider account being queried.
Sourcepub fn statuses(&self) -> &[OrderStatus]
pub fn statuses(&self) -> &[OrderStatus]
Borrows the requested lifecycle statuses.
Sourcepub const fn contract_id(&self) -> Option<&ContractId>
pub const fn contract_id(&self) -> Option<&ContractId>
Borrows the optional provider contract filter.
Sourcepub const fn created_after(&self) -> Option<Timestamp>
pub const fn created_after(&self) -> Option<Timestamp>
Returns the optional lower creation-time bound.
Sourcepub const fn created_before(&self) -> Option<Timestamp>
pub const fn created_before(&self) -> Option<Timestamp>
Returns the optional upper creation-time bound.
Sourcepub const fn page_offset(&self) -> Option<i32>
pub const fn page_offset(&self) -> Option<i32>
Returns the optional non-negative page offset.
Sourcepub const fn sort_by(&self) -> Option<OrderSortBy>
pub const fn sort_by(&self) -> Option<OrderSortBy>
Returns the optional sort field.
Sourcepub const fn sort_direction(&self) -> Option<OrderSortDirection>
pub const fn sort_direction(&self) -> Option<OrderSortDirection>
Returns the optional sort direction.
Sourcepub const fn include_total_count(&self) -> Option<bool>
pub const fn include_total_count(&self) -> Option<bool>
Returns the optional total-count request flag.