pub struct MarketDataHistoryRequest { /* private fields */ }Expand description
Query parameters for GET /api/v5/public/market-data-history.
Implementations§
Source§impl MarketDataHistoryRequest
impl MarketDataHistoryRequest
Sourcepub fn module(self, value: impl Into<String>) -> Self
pub fn module(self, value: impl Into<String>) -> Self
Set the OKX market-data module identifier.
Sourcepub fn inst_id_list(self, value: impl Into<String>) -> Self
pub fn inst_id_list(self, value: impl Into<String>) -> Self
Set a comma-separated instrument-ID list.
Sourcepub fn date_aggregation(self, value: impl Into<String>) -> Self
pub fn date_aggregation(self, value: impl Into<String>) -> Self
Set the documented date aggregation type.
Trait Implementations§
Source§impl Clone for MarketDataHistoryRequest
impl Clone for MarketDataHistoryRequest
Source§fn clone(&self) -> MarketDataHistoryRequest
fn clone(&self) -> MarketDataHistoryRequest
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 MarketDataHistoryRequest
impl Debug for MarketDataHistoryRequest
Source§impl Default for MarketDataHistoryRequest
impl Default for MarketDataHistoryRequest
Source§fn default() -> MarketDataHistoryRequest
fn default() -> MarketDataHistoryRequest
Returns the “default value” for a type. Read more
Source§impl Serialize for MarketDataHistoryRequest
impl Serialize for MarketDataHistoryRequest
Auto Trait Implementations§
impl Freeze for MarketDataHistoryRequest
impl RefUnwindSafe for MarketDataHistoryRequest
impl Send for MarketDataHistoryRequest
impl Sync for MarketDataHistoryRequest
impl Unpin for MarketDataHistoryRequest
impl UnsafeUnpin for MarketDataHistoryRequest
impl UnwindSafe for MarketDataHistoryRequest
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