NoneStore#

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

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.

Parameters:

name – Name of the strategy this State belongs to

Return type:

State