pub struct FillHistoryRequest<'a> { /* private fields */ }Expand description
Query parameters for historical fills.
This is intentionally separate from FillsRequest because OKX documents
instType as required for GET /api/v5/trade/fills-history, while it is
optional for GET /api/v5/trade/fills.
Implementations§
Source§impl<'a> FillHistoryRequest<'a>
impl<'a> FillHistoryRequest<'a>
Sourcepub fn new(inst_type: InstType) -> Self
pub fn new(inst_type: InstType) -> Self
Create a historical fills query with the required instrument type.
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 FillHistoryRequest<'a>
impl<'a> Clone for FillHistoryRequest<'a>
Source§fn clone(&self) -> FillHistoryRequest<'a>
fn clone(&self) -> FillHistoryRequest<'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 FillHistoryRequest<'a>
impl<'a> Debug for FillHistoryRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for FillHistoryRequest<'a>
impl<'a> RefUnwindSafe for FillHistoryRequest<'a>
impl<'a> Send for FillHistoryRequest<'a>
impl<'a> Sync for FillHistoryRequest<'a>
impl<'a> Unpin for FillHistoryRequest<'a>
impl<'a> UnsafeUnpin for FillHistoryRequest<'a>
impl<'a> UnwindSafe for FillHistoryRequest<'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