tensortrade.feed.api.generic.warmup module

warmup.py contains classes for warm up stream operations.

class tensortrade.feed.api.generic.warmup.WarmUp(*args, **kwargs)[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 the listeners of the stream.