pub struct GetTickersParams {
pub category: Category,
pub symbol: Option<String>,
pub base_coin: Option<String>,
pub exp_date: Option<String>,
}Expand description
Query parameters of GET /v5/market/tickers (Client::get_tickers).
Fields§
§category: CategoryProduct type. spot, linear, inverse, option.
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only.
base_coin: Option<String>Base coin, uppercase only. Apply to option only.
exp_date: Option<String>Expiry date. e.g., 25DEC22. Apply to option only.
Implementations§
Source§impl GetTickersParams
impl GetTickersParams
Sourcepub fn new(category: Category) -> Self
pub fn new(category: Category) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_symbol(self, v: impl Into<String>) -> Self
pub fn with_symbol(self, v: impl Into<String>) -> Self
Set symbol: symbol name, like BTCUSDT, uppercase only.
Sourcepub fn with_base_coin(self, v: impl Into<String>) -> Self
pub fn with_base_coin(self, v: impl Into<String>) -> Self
Set base_coin: base coin, uppercase only. Apply to option only.
Sourcepub fn with_exp_date(self, v: impl Into<String>) -> Self
pub fn with_exp_date(self, v: impl Into<String>) -> Self
Set exp_date: expiry date. e.g., 25DEC22. Apply to option only.
Trait Implementations§
Source§impl Clone for GetTickersParams
impl Clone for GetTickersParams
Source§impl Debug for GetTickersParams
impl Debug for GetTickersParams
Auto Trait Implementations§
impl Freeze for GetTickersParams
impl RefUnwindSafe for GetTickersParams
impl Send for GetTickersParams
impl Sync for GetTickersParams
impl Unpin for GetTickersParams
impl UnsafeUnpin for GetTickersParams
impl UnwindSafe for GetTickersParams
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