tensortrade.wallets.wallet module

class tensortrade.wallets.wallet.Wallet(exchange, quantity)[source]

Bases: tensortrade.base.core.Identifiable

A wallet stores the balance of a specific instrument on a specific exchange.

balance

The total balance of the wallet available for use.

Return type:Quantity
deallocate(path_id, reason='DEALLOCATE')[source]
exchange
Return type:Exchange
classmethod from_tuple(wallet_tuple)[source]
instrument
Return type:Instrument
ledger = <tensortrade.wallets.ledger.Ledger object>
locked
Return type:Dict[str, Quantity]
locked_balance

The total balance of the wallet locked in orders.

Return type:Quantity
reset()[source]
total_balance

The total balance of the wallet, both available for use and locked in orders.

Return type:Quantity