NoneStore#

tradeexecutor.state.store.NoneStore class.

class NoneStore[source]#

Bases: StateStore

Store that is not persistent.

Used in unit tests. Seed with initial state.

__init__(state)[source]#
Parameters

state (State) –

Methods

__init__(state)

create()

Create a new state storage.

is_empty()

State has not been written yet.

load()

Load the state from the storage.

sync(state)

Do not persist anything.

__init__(state)[source]#
Parameters

state (State) –

is_empty()[source]#

State has not been written yet.

Return type

bool

load()[source]#

Load the state from the storage.

Return type

State

sync(state)[source]#

Do not persist anything.

Parameters

state (State) –

create()[source]#

Create a new state storage.

Return type

State