pub struct GetUSHistoryOrders {
pub symbol: Option<String>,
pub side: OrderSide,
pub start_at: i64,
pub end_at: i64,
pub query_type: i32,
pub page: i32,
pub limit: i32,
}Expand description
Request for crate::TradeContext::us_query_orders, modelled after
[crate::GetHistoryOrdersOptions] for HK/CN orders.
query_type: 0 = all (includes Rejected), 1 = pending, 2 = history (filled
only). Default 0 matches what the app shows as “past orders”.
symbol accepts a user-facing symbol e.g. "AAPL.US" or "DOGEUSD.BKKT".
The SDK converts it to the internal counter_id format automatically.
Fields§
§symbol: Option<String>Optional symbol filter, e.g. "AAPL.US". Converted to counter_id
internally.
side: OrderSideDirection filter. [crate::OrderSide::Unknown] = all (default).
start_at: i64Start timestamp (seconds). Defaults to 90 days ago.
end_at: i64End timestamp (seconds). Defaults to now.
query_type: i320 = all, 1 = pending, 2 = history (filled only). Default 0.
page: i32Page number, 1-based. Default 1.
limit: i32Page size. Default 20.
Trait Implementations§
Source§impl Clone for GetUSHistoryOrders
impl Clone for GetUSHistoryOrders
Source§fn clone(&self) -> GetUSHistoryOrders
fn clone(&self) -> GetUSHistoryOrders
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GetUSHistoryOrders
impl Debug for GetUSHistoryOrders
Source§impl Default for GetUSHistoryOrders
impl Default for GetUSHistoryOrders
Source§fn default() -> GetUSHistoryOrders
fn default() -> GetUSHistoryOrders
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetUSHistoryOrders
impl RefUnwindSafe for GetUSHistoryOrders
impl Send for GetUSHistoryOrders
impl Sync for GetUSHistoryOrders
impl Unpin for GetUSHistoryOrders
impl UnsafeUnpin for GetUSHistoryOrders
impl UnwindSafe for GetUSHistoryOrders
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more