SimulateStore#

API documentation for tradeexecutor.state.store.SimulateStore Python class in Trading Strategy framework.

class SimulateStore[source]#

Bases: JSONFileStore

Store backend used in trade simulations.

  • Never persist this store, as the generated txs and their hashes exist only in the local simulated chain memory

__init__(path, on_save=None)#
Parameters:
  • path (Union[Path, str]) – Path to the JSON file

  • on_save (Callable) – Save hook. Used by RunState.read_only_state_copy

Methods

__init__(path[, on_save])

param path:

create(name)

Create a new state storage.

is_pristine()

State has not been written yet.

load()

Load the state from the storage.

sync(state)

No-op - never write a file.

sync(state)[source]#

No-op - never write a file.

Parameters:

state (State) –