ParquetFileStore#

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

class ParquetFileStore[source]#

Bases: TradeFeedStore

Store trades on a Parquet file on a file system.

__init__(path)[source]#
Parameters:

path (Path) –

Methods

__init__(path)

create()

Create a new state storage.

is_pristine()

State has not been written yet.

load()

Load the state from the storage.

save(df)

Write a new Parquet dump using Linux atomic file replacement.

__init__(path)[source]#
Parameters:

path (Path) –

is_pristine()[source]#

State has not been written yet.

Return type:

bool

load()[source]#

Load the state from the storage.

Return type:

DataFrame

save(df)[source]#

Write a new Parquet dump using Linux atomic file replacement.

Parameters:

df (DataFrame) –

create()[source]#

Create a new state storage.

Parameters:

name – Name of the strategy this State belongs to

Return type:

DataFrame