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=None)[source]#
Parameters

state (Optional[State]) –

Methods

__init__([state])

create()

Create a new state storage.

is_pristine()

State has not been written yet.

load()

Load the state from the storage.

sync(state)

Do not persist anything.

__init__(state=None)[source]#
Parameters

state (Optional[State]) –

is_pristine()[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