pub struct GetTransactionLogParams {
pub account_type: Option<AccountType>,
pub category: Option<Category>,
pub currency: Option<String>,
pub base_coin: Option<String>,
pub settle_coin: Option<String>,
pub type: Option<String>,
pub trans_sub_type: Option<String>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub limit: Option<u64>,
pub cursor: Option<String>,
}Expand description
Query parameters of GET /v5/account/transaction-log (Client::get_transaction_log).
Fields§
§account_type: Option<AccountType>Account Type. UNIFIED
category: Option<Category>Product type spot,linear,option,inverse
currency: Option<String>Currency, uppercase only
base_coin: Option<String>BaseCoin, uppercase only. e.g., BTC of BTCPERP
settle_coin: Option<String>Not documented. Settle coin linear: either symbol or settleCoin is required. symbol has a higher priority
type: Option<String>Types of transaction logs
trans_sub_type: Option<String>movePosition, used to filter trans logs of Move Position only
start_time: Option<Timestamp>The start timestamp (ms) startTime and endTime are not passed, return 24 hours by default Only startTime is passed, return range between startTime and startTime+24 hours Only endTime is passed, return range between endTime-24 hours and endTime If both are passed, the rule is endTime - startTime <= 7 days
end_time: Option<Timestamp>The end timestamp (ms)
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 GetTransactionLogParams
impl GetTransactionLogParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_account_type(self, v: AccountType) -> Self
pub fn with_account_type(self, v: AccountType) -> Self
Set account_type: account Type. UNIFIED.
Sourcepub fn with_category(self, v: Category) -> Self
pub fn with_category(self, v: Category) -> Self
Set category: product type spot,linear,option,inverse.
Sourcepub fn with_currency(self, v: impl Into<String>) -> Self
pub fn with_currency(self, v: impl Into<String>) -> Self
Set currency: currency, uppercase only.
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: baseCoin, uppercase only. e.g., BTC of BTCPERP.
Sourcepub fn with_settle_coin(self, v: impl Into<String>) -> Self
pub fn with_settle_coin(self, v: impl Into<String>) -> Self
Set settle_coin: not documented. Settle coin linear: either symbol or settleCoin is required. symbol has a higher priority.
Sourcepub fn with_trans_sub_type(self, v: impl Into<String>) -> Self
pub fn with_trans_sub_type(self, v: impl Into<String>) -> Self
Set trans_sub_type: movePosition, used to filter trans logs of Move Position only.
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 24 hours by default Only startTime is passed, return range between startTime and startTime+24 hours Only endTime is passed, return range between endTime-24 hours and …
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: 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.