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