tensortrade.exchanges.live.ccxt_exchange module

class tensortrade.exchanges.live.ccxt_exchange.CCXTExchange(exchange, **kwargs)[source]

Bases: tensortrade.exchanges.asset_exchange.AssetExchange

balance(symbol='BTC')[source]
Return type

float

current_price(symbol, output_symbol='BTC')[source]
execute_trade(symbol, trade_type, amount, price)[source]
has_next_observation()[source]
initial_balance(symbol='BTC')[source]
Return type

float

net_worth(output_symbol='BTC')[source]

Calculate the net worth of the current account in this exchange

# Arguments output_symbol: the notional value, that should be used to display the account value

# Returns the total portfolio value of this account

Return type

float

next_observation()[source]
observation_space()[source]
performance()[source]
Return type

pandas.DataFrame

portfolio()[source]
Return type

Dict[str, float]

profit_loss_percent(output_symbol='BTC')[source]

Calculate the percentage change since the initial balance in the output_symbol notional value

Return type

float

trades()[source]
Return type

pandas.DataFrame