tensortrade.trades.trade_type module

class tensortrade.trades.trade_type.TradeType[source]

Bases: enum.Enum

A trade type for use within trading environments.

HOLD = 0
LIMIT_BUY = 1
LIMIT_SELL = 3
MARKET_BUY = 2
MARKET_SELL = 4
property is_buy

Returns: Whether the trade type is a buy offer.

Return type

bool

property is_hold

Returns: Whether the trade type is non-existent (i.e. hold).

Return type

bool

property is_sell

Returns: Whether the trade type is a sell offer.

Return type

bool