pub struct RangeQuery {
pub instrument: String,
pub indicator: String,
pub params: Option<Value>,
pub from: String,
pub to: String,
pub mode: Option<Mode>,
}Expand description
A range of an indicator’s history (exports).
Fields§
§instrument: StringRaw symbol or alias from GET /v1/instruments, or the raw symbol of another contract of the same market.
indicator: String§params: Option<Value>§from: StringUnix nanoseconds, decimal strings; [from, to) on the reception time of the trades.
to: String§mode: Option<Mode>Live (default): every version published in real time; Confirmed: only the final ones. Same compute units.
Implementations§
Source§impl RangeQuery
impl RangeQuery
pub fn new( instrument: impl Into<String>, indicator: impl Into<String>, from: impl Into<String>, to: impl Into<String>, ) -> RangeQuery
Sourcepub fn params(self, params: Value) -> RangeQuery
pub fn params(self, params: Value) -> RangeQuery
Parameters of the indicator, a JSON object (serde_json::to_value of a generated <Name>Params, or json!({…})).
pub fn mode(self, mode: Mode) -> RangeQuery
Trait Implementations§
Source§impl Clone for RangeQuery
impl Clone for RangeQuery
Source§impl Debug for RangeQuery
impl Debug for RangeQuery
Source§impl<'de> Deserialize<'de> for RangeQuery
impl<'de> Deserialize<'de> for RangeQuery
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
Source§impl From<RangeQuery> for PageQuery
impl From<RangeQuery> for PageQuery
Source§fn from(q: RangeQuery) -> PageQuery
fn from(q: RangeQuery) -> PageQuery
Converts to this type from the input type.
Source§impl PartialEq for RangeQuery
impl PartialEq for RangeQuery
Source§impl Serialize for RangeQuery
impl Serialize for RangeQuery
impl StructuralPartialEq for RangeQuery
Auto Trait Implementations§
impl Freeze for RangeQuery
impl RefUnwindSafe for RangeQuery
impl Send for RangeQuery
impl Sync for RangeQuery
impl Unpin for RangeQuery
impl UnsafeUnpin for RangeQuery
impl UnwindSafe for RangeQuery
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