pub struct OrderBookParams {
pub limit: Option<u32>,
}Expand description
Parameters for fetching order book data.
§Example
use ccxt_core::types::params::OrderBookParams;
let params = OrderBookParams::default().limit(100);Fields§
§limit: Option<u32>Maximum depth (number of price levels) to return.
Implementations§
Source§impl OrderBookParams
impl OrderBookParams
Sourcepub fn limit(self, n: u32) -> OrderBookParams
pub fn limit(self, n: u32) -> OrderBookParams
Set the maximum depth.
Trait Implementations§
Source§impl Clone for OrderBookParams
impl Clone for OrderBookParams
Source§fn clone(&self) -> OrderBookParams
fn clone(&self) -> OrderBookParams
Returns a duplicate of the value. Read more
1.0.0 · 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 OrderBookParams
impl Debug for OrderBookParams
Source§impl Default for OrderBookParams
impl Default for OrderBookParams
Source§fn default() -> OrderBookParams
fn default() -> OrderBookParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OrderBookParams
impl RefUnwindSafe for OrderBookParams
impl Send for OrderBookParams
impl Sync for OrderBookParams
impl Unpin for OrderBookParams
impl UnwindSafe for OrderBookParams
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