unofficial_tabdeal_api.wallet

This module holds the WalletClass.

Classes

WalletClass

This is the class storing methods related to account wallet.

Module Contents

class unofficial_tabdeal_api.wallet.WalletClass(*, user_hash, authorization_key, _is_test=False)

Bases: unofficial_tabdeal_api.base.BaseClass

This is the class storing methods related to account wallet.

Parameters:
  • user_hash (str)

  • authorization_key (str)

  • _is_test (bool)

async get_wallet_usdt_balance()

Gets the balance of wallet in USDT and returns it as Decimal.

Returns:

Wallet USDT balance in Decimal

Return type:

Decimal

async transfer_usdt_from_wallet_to_margin_asset(*, transfer_amount, isolated_symbol)

Transfers USDT from wallet to margin asset.

Parameters:
  • transfer_amount (Decimal) – Amount of USDT to transfer

  • isolated_symbol (str) – Isolated symbol to transfer USDT to

Return type:

None

async transfer_usdt_from_margin_asset_to_wallet(*, transfer_amount, isolated_symbol)

Transfers USDT from margin asset to wallet.

Parameters:
  • transfer_amount (Decimal) – Amount of USDT to transfer

  • isolated_symbol (str) – Isolated symbol to transfer USDT from

Return type:

None