modular_trader.record#

Classes#

Recorder

Recorder to store and save data to disk.

Module Contents#

class modular_trader.record.Recorder#

Recorder to store and save data to disk.

Attributes:

record: Mapping of data to be stored. save_path: Path to save the data to.

__getitem__(key: Any) Any#

Get the value associated with the given key.

Args:

key: The key to retrieve.

Returns:

The value associated with the key or None if the key is not found.

Parameters:

key (Any)

Return type:

Any

__setitem__(key: Any, value: Any) None#

Set the value associated with the given key.

Args:

key: The key to set. value: The value to set.

Parameters:
  • key (Any)

  • value (Any)

Return type:

None

save_to_disk() None#

Save the record to disk.

Return type:

None

record: Mapping[Any, Any] = None#
save_path: os.PathLike = None#