pub struct GetOrderbookParams {
pub category: Category,
pub symbol: String,
pub limit: Option<u64>,
}Expand description
Query parameters of GET /v5/market/orderbook (Client::get_orderbook).
Fields§
§category: CategoryProduct type. spot, linear, inverse, option.
symbol: StringSymbol name, like BTCUSDT, uppercase only.
limit: Option<u64>Limit size for each bid and ask
- spot: [1, 1000]. Default: 1.
- linear&inverse: [1, 1000]. Default: 25.
- option: [1, 25]. Default: 1.
Implementations§
Source§impl GetOrderbookParams
impl GetOrderbookParams
Sourcepub fn new(category: Category, symbol: impl Into<String>) -> Self
pub fn new(category: Category, symbol: impl Into<String>) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_limit(self, v: u64) -> Self
pub fn with_limit(self, v: u64) -> Self
Set limit: limit size for each bid and ask - spot: [1, 1000]. Default: 1. - linear&inverse: [1, 1000]. Default: 25. - option: [1, 25]. Default: 1.
Trait Implementations§
Source§impl Clone for GetOrderbookParams
impl Clone for GetOrderbookParams
Source§impl Debug for GetOrderbookParams
impl Debug for GetOrderbookParams
Auto Trait Implementations§
impl Freeze for GetOrderbookParams
impl RefUnwindSafe for GetOrderbookParams
impl Send for GetOrderbookParams
impl Sync for GetOrderbookParams
impl Unpin for GetOrderbookParams
impl UnsafeUnpin for GetOrderbookParams
impl UnwindSafe for GetOrderbookParams
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