tensortrade.feed.core.methods module

class tensortrade.feed.core.methods.Methods(stream: Stream)[source]

Bases: object

A class used to hold the accessor methods for a particular data type.

Parameters:stream ("Stream") – The stream to injected with the method accessor.
classmethod register_method(func: Callable, names: List[str])[source]

Injects an accessor into a specific stream instance.

Parameters:
  • func (Callable) – The function to be injected as an accessor method.
  • names (List[str]) – The names to be given to the function.