pub struct GetExecutionListParams {
pub category: Category,
pub symbol: Option<String>,
pub order_id: Option<String>,
pub order_link_id: Option<String>,
pub base_coin: Option<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub exec_type: Option<ExecType>,
pub limit: Option<i32>,
pub cursor: Option<String>,
}Expand description
Query parameters of GET /v5/execution/list (Client::get_execution_list).
Fields§
§category: CategoryProduct type linear, inverse, spot, option.
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only.
order_id: Option<String>Order ID.
order_link_id: Option<String>User customised order ID.
base_coin: Option<String>Base coin, uppercase only. For type option, default value is BTC.
start_time: Option<Timestamp>The start timestamp (ms) startTime and endTime are not passed, return 7 days by default Only startTime is passed, return range between startTime and startTime+7 days Only endTime is passed, return range between endTime-7 days and endTime …
end_time: Option<Timestamp>The end timestamp (ms).
exec_type: Option<ExecType>Execution type.
limit: Option<i32>[1, 100]. Default: 50
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetExecutionListParams
impl GetExecutionListParams
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_order_id(self, v: impl Into<String>) -> Self
pub fn with_order_id(self, v: impl Into<String>) -> Self
Set order_id: order ID.
Sourcepub fn with_order_link_id(self, v: impl Into<String>) -> Self
pub fn with_order_link_id(self, v: impl Into<String>) -> Self
Set order_link_id: user customised order ID.
Sourcepub fn with_base_coin(self, v: impl Into<String>) -> Self
pub fn with_base_coin(self, v: impl Into<String>) -> Self
Set base_coin: base coin, uppercase only. For type option, default value is BTC.
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) startTime and endTime are not passed, return 7 days by default Only startTime is passed, return range between startTime and startTime+7 days Only endTime is passed, return range between endTime-7 days and endTime …
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_exec_type(self, v: ExecType) -> Self
pub fn with_exec_type(self, v: ExecType) -> Self
Set exec_type: execution type.
Sourcepub fn with_limit(self, v: i32) -> Self
pub fn with_limit(self, v: i32) -> Self
Set limit: [1, 100]. Default: 50.
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.