TradeFeedStore#

tradingstrategy.direct_feed.trade_store.TradeFeedStore Python class in Trading Strategy framework.

class TradeFeedStore[source]#

Bases: ABC

Describe trade feed storage backend.

__init__()#

Methods

__init__()

create()

Create a new state storage.

is_pristine()

State has not been written yet.

load()

Load the state from the storage.

save(df)

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:

DataFrame

abstract save(df)[source]#

Save the state to the storage.

Parameters:

df (DataFrame) –

create()[source]#

Create a new state storage.

Parameters:

name – Name of the strategy this State belongs to

Return type:

DataFrame