pub struct HistoryTradesRequest<'a> { /* private fields */ }Expand description
Query parameters for historical trades.
Implementations§
Source§impl<'a> HistoryTradesRequest<'a>
impl<'a> HistoryTradesRequest<'a>
Sourcepub fn new(inst_id: impl Into<Cow<'a, str>>) -> Self
pub fn new(inst_id: impl Into<Cow<'a, str>>) -> Self
Create a historical trades query for an instrument.
Sourcepub fn trade_type(self, trade_type: impl Into<Cow<'a, str>>) -> Self
pub fn trade_type(self, trade_type: impl Into<Cow<'a, str>>) -> Self
Set the OKX trade type filter.
Sourcepub fn after(self, after: impl Into<Cow<'a, str>>) -> Self
pub fn after(self, after: impl Into<Cow<'a, str>>) -> Self
Return records after this pagination cursor.
Trait Implementations§
Source§impl<'a> Clone for HistoryTradesRequest<'a>
impl<'a> Clone for HistoryTradesRequest<'a>
Source§fn clone(&self) -> HistoryTradesRequest<'a>
fn clone(&self) -> HistoryTradesRequest<'a>
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<'a> Debug for HistoryTradesRequest<'a>
impl<'a> Debug for HistoryTradesRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for HistoryTradesRequest<'a>
impl<'a> RefUnwindSafe for HistoryTradesRequest<'a>
impl<'a> Send for HistoryTradesRequest<'a>
impl<'a> Sync for HistoryTradesRequest<'a>
impl<'a> Unpin for HistoryTradesRequest<'a>
impl<'a> UnsafeUnpin for HistoryTradesRequest<'a>
impl<'a> UnwindSafe for HistoryTradesRequest<'a>
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