pub struct PricesHistoryQuery {
pub interval: Option<String>,
pub fidelity: Option<i32>,
pub start_ts: Option<i64>,
pub end_ts: Option<i64>,
}Expand description
Optional query parameters for the /prices-history endpoint.
All fields are optional; only Some values are sent. See
docs/specs/clob/markets.md for the accepted interval values and the
fidelity (minutes) meaning.
Fields§
§interval: Option<String>Aggregation window: max, all, 1m, 1w, 1d, 6h, or 1h.
fidelity: Option<i32>Resolution in minutes (upstream default is 1).
start_ts: Option<i64>Inclusive start of the window as a UNIX timestamp (seconds).
end_ts: Option<i64>Inclusive end of the window as a UNIX timestamp (seconds).
Trait Implementations§
Source§impl Clone for PricesHistoryQuery
impl Clone for PricesHistoryQuery
Source§fn clone(&self) -> PricesHistoryQuery
fn clone(&self) -> PricesHistoryQuery
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 PricesHistoryQuery
impl Debug for PricesHistoryQuery
Source§impl Default for PricesHistoryQuery
impl Default for PricesHistoryQuery
Source§fn default() -> PricesHistoryQuery
fn default() -> PricesHistoryQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PricesHistoryQuery
impl RefUnwindSafe for PricesHistoryQuery
impl Send for PricesHistoryQuery
impl Sync for PricesHistoryQuery
impl Unpin for PricesHistoryQuery
impl UnsafeUnpin for PricesHistoryQuery
impl UnwindSafe for PricesHistoryQuery
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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