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