pub struct AccountTradesParams {
pub symbol: String,
pub order_id: Option<i64>,
pub start_time: Option<i64>,
pub end_time: Option<i64>,
pub from_id: Option<i64>,
pub limit: Option<u32>,
}Expand description
Query parameters for account trades.
Fields§
§symbol: StringTrading pair symbol.
order_id: Option<i64>Filter by order ID.
start_time: Option<i64>Filter by start time.
end_time: Option<i64>Filter by end time.
from_id: Option<i64>Filter by trade ID (returns trades >= this ID).
limit: Option<u32>Maximum number of trades to return (default 500, max 1000).
Implementations§
Source§impl AccountTradesParams
impl AccountTradesParams
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Set the limit.
Sourcepub fn with_time_range(self, start: i64, end: i64) -> Self
pub fn with_time_range(self, start: i64, end: i64) -> Self
Set the time range.
Trait Implementations§
Source§impl Clone for AccountTradesParams
impl Clone for AccountTradesParams
Source§fn clone(&self) -> AccountTradesParams
fn clone(&self) -> AccountTradesParams
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 AccountTradesParams
impl Debug for AccountTradesParams
Auto Trait Implementations§
impl Freeze for AccountTradesParams
impl RefUnwindSafe for AccountTradesParams
impl Send for AccountTradesParams
impl Sync for AccountTradesParams
impl Unpin for AccountTradesParams
impl UnwindSafe for AccountTradesParams
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