StateStore# tradeexecutor.state.store.StateStore Python class in Trading Strategy framework. class StateStore[source]# Bases: ABC Backend to manage the trade exeuction persistent state. __init__()# Methods __init__() create(name) Create a new state storage. is_pristine() State has not been written yet. load() Load the state from the storage. sync(state) Save the state to the storage. abstract is_pristine()[source]# State has not been written yet. Return type: bool abstract load()[source]# Load the state from the storage. Return type: State abstract sync(state)[source]# Save the state to the storage. Parameters: state (State) – abstract create(name)[source]# Create a new state storage. Parameters: name (str) – Name of the strategy this State belongs to Return type: State