pub struct GetFundingRateHistoryParams {
pub category: Category,
pub symbol: String,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub limit: Option<u64>,
}Expand description
Query params for Client::get_funding_rate_history.
Covers: linear / inverse
Fields§
§category: CategoryProduct type. linear, inverse.
symbol: StringSymbol name, like BTCUSDT, uppercase only.
start_time: Option<Timestamp>The start timestamp (ms).
end_time: Option<Timestamp>The end timestamp (ms).
limit: Option<u64>Max 200. Default 200.
Implementations§
Source§impl GetFundingRateHistoryParams
impl GetFundingRateHistoryParams
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_start_time(self, v: Timestamp) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
Set start_time: the start timestamp (ms).
Sourcepub fn with_end_time(self, v: Timestamp) -> Self
pub fn with_end_time(self, v: Timestamp) -> Self
Set end_time: the end timestamp (ms).
Sourcepub fn with_limit(self, v: u64) -> Self
pub fn with_limit(self, v: u64) -> Self
Set limit: max 200. Default 200.
Trait Implementations§
Source§impl Clone for GetFundingRateHistoryParams
impl Clone for GetFundingRateHistoryParams
Source§impl Debug for GetFundingRateHistoryParams
impl Debug for GetFundingRateHistoryParams
Auto Trait Implementations§
impl Freeze for GetFundingRateHistoryParams
impl RefUnwindSafe for GetFundingRateHistoryParams
impl Send for GetFundingRateHistoryParams
impl Sync for GetFundingRateHistoryParams
impl Unpin for GetFundingRateHistoryParams
impl UnsafeUnpin for GetFundingRateHistoryParams
impl UnwindSafe for GetFundingRateHistoryParams
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