pub struct PositionsHistoryRequest<'a> { /* private fields */ }Expand description
Query parameters for position history.
Implementations§
Source§impl<'a> PositionsHistoryRequest<'a>
impl<'a> PositionsHistoryRequest<'a>
Sourcepub fn margin_mode(self, mgn_mode: TradeMode) -> Self
pub fn margin_mode(self, mgn_mode: TradeMode) -> Self
Set the margin mode filter.
Sourcepub fn close_type(self, close_type: impl Into<Cow<'a, str>>) -> Self
pub fn close_type(self, close_type: impl Into<Cow<'a, str>>) -> Self
Set the OKX close type filter.
Sourcepub fn position_id(self, pos_id: impl Into<Cow<'a, str>>) -> Self
pub fn position_id(self, pos_id: impl Into<Cow<'a, str>>) -> Self
Set the position ID 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 PositionsHistoryRequest<'a>
impl<'a> Clone for PositionsHistoryRequest<'a>
Source§fn clone(&self) -> PositionsHistoryRequest<'a>
fn clone(&self) -> PositionsHistoryRequest<'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 PositionsHistoryRequest<'a>
impl<'a> Debug for PositionsHistoryRequest<'a>
Source§impl<'a> Default for PositionsHistoryRequest<'a>
impl<'a> Default for PositionsHistoryRequest<'a>
Source§fn default() -> PositionsHistoryRequest<'a>
fn default() -> PositionsHistoryRequest<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PositionsHistoryRequest<'a>
impl<'a> RefUnwindSafe for PositionsHistoryRequest<'a>
impl<'a> Send for PositionsHistoryRequest<'a>
impl<'a> Sync for PositionsHistoryRequest<'a>
impl<'a> Unpin for PositionsHistoryRequest<'a>
impl<'a> UnsafeUnpin for PositionsHistoryRequest<'a>
impl<'a> UnwindSafe for PositionsHistoryRequest<'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