Wallet

Defines the _Wallet class.

class mexc_api.spot.endpoints._wallet._Wallet(api: Api)

Defines all wallet endpoints.

cancel_withdraw(withdraw_id: str) str

Cancels a withdrawal.

dust_log(start_ms: int | None = None, end_ms: int | None = None, page: int | None = None, limit: int | None = None) dict

Returns the dust log.

dust_transfer(asset: str | list[str]) dict

Converts asset(s) to dust.

get_create_deposit_address(asset: str, network: str) list

Creates an deposit address.

get_deposit_address(asset: str, network: str | None = None) dict

Returns the deposit addresses of an asset.

get_deposit_history(asset: str | None = None, status: int | None = None, start_ms: int | None = None, end_ms: int | None = None, limit: int | None = None) list

Returns deposits based on the parameters.

get_mx_convertible_assets() list

Returns assets that can be converted into MX

get_transfers(send_account_type: AccountType, receive_account_type: AccountType, start_ms: int | None = None, end_ms: int | None = None, page: int | None = None, size: int | None = None) list

Returns transfers baesed on the parameters.

get_transfers_by_id(transfer_id: str) dict

Returns an transfer.

get_withdrawal_address(asset: str | None = None, page: int | None = None, limit: int | None = None) dict

Returns the withdrawal addresses of an asset. Returns all withdrawal addresses if no asset is given.

get_withdrawal_history(asset: str | None = None, status: int | None = None, start_ms: int | None = None, end_ms: int | None = None, limit: int | None = None) list

Returns withdrawals based on the parameters.

info() list

Returns all currency info.

transfer(send_account_type: AccountType, receive_account_type: AccountType, asset: str, amount: str) list

Tranfer an asset between account types

withdraw(asset: str, network: str | None, address: str, amount: str, order_id: str | None = None, memo: str | None = None, remark: str | None = None) list

Withdraws an asset from mexc to an address.