tensortrade.feed.api.generic.warmup module

warmup.py contains classes for warm up stream operations.

class tensortrade.feed.api.generic.warmup.WarmUp(periods: int)[source]

Bases: tensortrade.feed.core.base.Stream

A stream operator for warming up a given stream.

Parameters:periods (int) – Number of periods to warm up.
forward() → T[source]

Generates the next value from the underlying data streams.

Returns:T – The next value in the stream.
has_next() → bool[source]

Checks if there is another value.

Returns:bool – If there is another value or not.
reset() → None[source]

Resets all inputs to and listeners of the stream and sets stream value to None.