JSONFileStore#
tradeexecutor.state.store.JSONFileStore Python class in Trading Strategy framework.
- class JSONFileStore[source]#
Bases:
StateStore
Store the state of the executor as a JSON file.
Read by strategy on a startup
Read by webhook when asked over the API
Methods
__init__
(path)create
(name)Create a new state storage.
State has not been written yet.
load
()Load the state from the storage.
sync
(state)Write new JSON state dump using Linux atomic file replacement.