Overview
Examples
API reference
tensortrade.trades.trade_type.
TradeType
Bases: enum.Enum
enum.Enum
A trade type for use within trading environments.
HOLD
LIMIT_BUY
LIMIT_SELL
MARKET_BUY
MARKET_SELL
is_buy
Returns: Whether the trade type is a buy offer.
bool
is_hold
Returns: Whether the trade type is non-existent (i.e. hold).
is_sell
Returns: Whether the trade type is a sell offer.