tensortrade.actions.action_scheme module

class tensortrade.actions.action_scheme.ActionScheme[source]

Bases: tensortrade.base.component.Component, tensortrade.base.core.TimeIndexed

An action scheme for determining the action to take at each time step within a trading environment.

action_space
Return type:Space
compile()[source]
exchange_pairs
get_order(action, portfolio)[source]

Get the order to be executed on the exchange based on the action provided.

Parameters:
  • action (any) – any The action to be converted into an order.
  • portfolio (Portfolio) – ‘Portfolio’ The portfolio the environment is operating on.
Return type:

Order

Returns:

The order to be executed on the exchange this time step.

registered_name = 'actions'
reset()[source]

An optional reset method, which will be called each time the environment is reset.