pub struct GetPositionTiersParams {
pub inst_type: OKXInstrumentType,
pub td_mode: OKXTradeMode,
pub uly: Option<String>,
pub inst_family: Option<String>,
pub inst_id: Option<String>,
pub ccy: Option<String>,
pub tier: Option<String>,
}Expand description
Parameters for the GET /api/v5/public/position-tiers endpoint.
Fields§
§inst_type: OKXInstrumentTypeInstrument type: MARGIN, SWAP, FUTURES, OPTION.
td_mode: OKXTradeModeTrading mode, valid values: cross, isolated.
uly: Option<String>Underlying, required for SWAP/FUTURES/OPTION Single underlying or multiple underlyings (no more than 3) separated with comma.
inst_family: Option<String>Instrument family, required for SWAP/FUTURES/OPTION Single instrument family or multiple families (no more than 5) separated with comma.
inst_id: Option<String>Specific instrument ID.
ccy: Option<String>Margin currency, only applicable to cross MARGIN.
tier: Option<String>Tiers.
Trait Implementations§
Source§impl Clone for GetPositionTiersParams
impl Clone for GetPositionTiersParams
Source§fn clone(&self) -> GetPositionTiersParams
fn clone(&self) -> GetPositionTiersParams
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 GetPositionTiersParams
impl Debug for GetPositionTiersParams
Source§impl Default for GetPositionTiersParams
impl Default for GetPositionTiersParams
Source§fn default() -> GetPositionTiersParams
fn default() -> GetPositionTiersParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetPositionTiersParams
impl<'de> Deserialize<'de> for GetPositionTiersParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetPositionTiersParams
impl RefUnwindSafe for GetPositionTiersParams
impl Send for GetPositionTiersParams
impl Sync for GetPositionTiersParams
impl Unpin for GetPositionTiersParams
impl UnwindSafe for GetPositionTiersParams
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