pub struct OKXSpread {Show 13 fields
pub sprd_id: Ustr,
pub sprd_type: OKXSpreadType,
pub state: OKXSpreadState,
pub base_ccy: Ustr,
pub sz_ccy: Ustr,
pub quote_ccy: Ustr,
pub tick_sz: String,
pub min_sz: String,
pub lot_sz: String,
pub list_time: Option<u64>,
pub exp_time: Option<u64>,
pub u_time: Option<u64>,
pub legs: Vec<OKXSpreadLeg>,
}Expand description
Represents a spread from the GET /api/v5/sprd/spreads endpoint.
Fields§
§sprd_id: UstrSpread ID.
sprd_type: OKXSpreadTypeSpread type.
state: OKXSpreadStateSpread status.
base_ccy: UstrBase currency.
sz_ccy: UstrSize currency.
quote_ccy: UstrQuote currency.
tick_sz: StringTick size in quote currency.
min_sz: StringMinimum order size in size currency.
lot_sz: StringOrder size increment in size currency.
list_time: Option<u64>Listing time in milliseconds.
exp_time: Option<u64>Expiry time in milliseconds.
u_time: Option<u64>Last update time in milliseconds.
legs: Vec<OKXSpreadLeg>Spread legs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OKXSpread
impl<'de> Deserialize<'de> for OKXSpread
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 OKXSpread
impl RefUnwindSafe for OKXSpread
impl Send for OKXSpread
impl Sync for OKXSpread
impl Unpin for OKXSpread
impl UnsafeUnpin for OKXSpread
impl UnwindSafe for OKXSpread
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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