tensortrade.env.actions.bsh module¶
- class tensortrade.env.actions.bsh.BSH(*args, **kwargs)[source]¶
Bases:
AbstractActionScheme
A simple discrete action scheme where the only options are to buy, sell, or hold.
- Parameters:
cash (Wallet) – The wallet to hold funds in the base intrument.
asset (Wallet) – The wallet to hold funds in the quote instrument.
- property action_space: Space¶
The action space of the
TradingEnv
.- Returns:
The gymnasium action space of the
TradingEnv
.- Return type:
Space
- get_orders(action: int) List[Order] [source]¶
Gets the list of orders to be submitted for the given action.
- Parameters:
action (
gymnasium.core.ActType
) – The action to be interpreted.- Returns:
A list of orders to be submitted to the broker.
- Return type:
List[Order]
- registered_name = 'bsh'¶