pub struct GetTradesParams {
pub category: Category,
pub symbol: Option<String>,
pub base_coin: Option<String>,
pub option_type: Option<OptionType>,
pub limit: Option<u64>,
}Fields§
§category: Category§symbol: Option<String>required for spot/linear/inverse optional for option
base_coin: Option<String>Apply to option only If the field is not passed, return BTC data by default
option_type: Option<OptionType>Option type. Apply to option only
limit: Option<u64>spot: [1, 60], default: 60
others: [1, 1000], default: 500
Implementations§
Source§impl GetTradesParams
impl GetTradesParams
pub fn new(category: Category) -> Self
pub fn with_symbol(self, v: impl Into<String>) -> Self
pub fn with_base_coin(self, v: impl Into<String>) -> Self
pub fn with_option_type(self, v: OptionType) -> Self
pub fn with_limit(self, v: u64) -> Self
Trait Implementations§
Source§impl Clone for GetTradesParams
impl Clone for GetTradesParams
Source§impl Debug for GetTradesParams
impl Debug for GetTradesParams
Auto Trait Implementations§
impl Freeze for GetTradesParams
impl RefUnwindSafe for GetTradesParams
impl Send for GetTradesParams
impl Sync for GetTradesParams
impl Unpin for GetTradesParams
impl UnsafeUnpin for GetTradesParams
impl UnwindSafe for GetTradesParams
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