pub struct TickerParams {
pub id: Option<String>,
pub symbol: Option<String>,
pub symbols: Option<Vec<String>>,
pub type: Option<TickerTypeEnum>,
pub window_size: Option<TickerWindowSizeEnum>,
pub symbol_status: Option<TickerSymbolStatusEnum>,
}Expand description
Request parameters for the [ticker] operation.
This struct holds all of the inputs you can pass when calling
ticker.
Fields§
§id: Option<String>Client-generated request identifier.
This field is **optional.
symbol: Option<String>Query ticker of a single symbol
This field is **optional.
symbols: Option<Vec<String>>Query ticker for multiple symbols
This field is **optional.
type: Option<TickerTypeEnum>Ticker type. Supported values: FULL (default) or MINI
This field is **optional.
window_size: Option<TickerWindowSizeEnum>Defaults to 1d if no parameter provided.
This field is **optional.
symbol_status: Option<TickerSymbolStatusEnum>Filters for symbols that have this tradingStatus. For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS. For multiple or all symbols, non-matching ones are simply excluded from the response. Valid values: TRADING, HALT, BREAK
This field is **optional.
Implementations§
Source§impl TickerParams
impl TickerParams
Sourcepub fn builder() -> TickerParamsBuilder
pub fn builder() -> TickerParamsBuilder
Create a builder for [ticker].
Trait Implementations§
Source§impl Clone for TickerParams
impl Clone for TickerParams
Source§fn clone(&self) -> TickerParams
fn clone(&self) -> TickerParams
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 TickerParams
impl Debug for TickerParams
Source§impl Default for TickerParams
impl Default for TickerParams
Source§fn default() -> TickerParams
fn default() -> TickerParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TickerParams
impl<'de> Deserialize<'de> for TickerParams
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 TickerParams
impl RefUnwindSafe for TickerParams
impl Send for TickerParams
impl Sync for TickerParams
impl Unpin for TickerParams
impl UnsafeUnpin for TickerParams
impl UnwindSafe for TickerParams
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