pub struct GetDeliveryRecordParams {
pub category: Category,
pub symbol: Option<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub exp_date: Option<String>,
pub limit: Option<u64>,
pub cursor: Option<String>,
}Expand description
Query params for
Client::get_delivery_record.
Fields§
§category: Categorylinear, inverse, option
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only.
start_time: Option<Timestamp>Without start_time and end_time, returns the past 30 days by default
end_time: Option<Timestamp>The end timestamp (ms).
exp_date: Option<String>Expiry date, e.g. “25MAR22”. Returns all if not specified
limit: Option<u64>Limit for data size per page. [1, 50]. Default: 20
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetDeliveryRecordParams
impl GetDeliveryRecordParams
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_start_time(self, v: Timestamp) -> Self
pub fn with_start_time(self, v: Timestamp) -> Self
Set start_time: without start_time and end_time, returns the past 30 days by default.
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_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. “25MAR22”. Returns all if not specified.
Sourcepub fn with_limit(self, v: u64) -> Self
pub fn with_limit(self, v: u64) -> Self
Set limit: limit for data size per page. [1, 50]. Default: 20.
Sourcepub fn with_cursor(self, v: impl Into<String>) -> Self
pub fn with_cursor(self, v: impl Into<String>) -> Self
Set cursor: cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.