DirectFeedStore#
tradingstrategy.direct_feed.store.DirectFeedStore Python class in Trading Strategy framework.
- class DirectFeedStore[source]#
Bases:
object
Manage on-disk block header and trade cache for direct feeds.
Internally uses partitioned Parquet dataset storage. Each partition is a range of blocks and goes to different folder/file.
Methods
__init__
(base_path, partition_size)Initialise a new store.
clear
()Clear cache.
is_empty
()Have we written anything to this store yer.
load_trade_feed
(trade_feed)Load trade and block header data.
save_trade_feed
(trade_feed)Save the trade and block header data.