tensortrade.env.generic.components.informer module

class tensortrade.env.generic.components.informer.Informer[source]

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

A component to provide information at each step of an episode.

info(env: TradingEnv) → dict[source]

Provides information at a given step of an episode.

Parameters:env ('TradingEnv') – The trading environment.
Returns:dict – A dictionary of information about the portfolio and net worth.
registered_name = 'monitor'
reset()[source]

Resets the informer.