truncate_ohlcv#

API documentation for tradingstrategy.direct_feed.ohlcv_aggregate.truncate_ohlcv Python function.

truncate_ohlcv(df, ts)[source]#

Clear the chain tip data to be written again.

Parameters:
  • ts (Timestamp) – Drop everything after this (inclusive).

  • df (DataFrame) –

Return type:

DataFrame