|
FastMM C++ API 0.14.0
Public headers, tier 1 and tier 2
|
The events of inner in [t0, t1) of event time (exch_ts, recv_ts when unset), for walk-forward folds.
More...
#include <fastmm/backtest/data_source.hpp>
Public Member Functions | |
| TimeSliceSource (MdSource &inner, Timestamp t0, Timestamp t1) | |
| ~TimeSliceSource () override | |
| TimeSliceSource (const TimeSliceSource &)=delete | |
| TimeSliceSource & | operator= (const TimeSliceSource &)=delete |
| const EventHeader * | next () override |
| void | reset () override |
| Timestamp | start_ts () const override |
| bool | order_by_order () const override |
The events of inner in [t0, t1) of event time (exch_ts, recv_ts when unset), for walk-forward folds.
The part before t0 is read but not yielded: it only rebuilds the book of every (venue, instrument), the recorded orders resting at t0 of an order-by-order source and the last message of every other kind except trades, and those states come out first, stamped t0 (the resting orders in arrival order, one BookSnapshot per book, then the rest in key order). A fold therefore starts on the book the full run would have had at t0. Ends at the first event at or after t1. inner is borrowed; reset() rewinds it.
|
override |
|
delete |
|
delete |
|
override |
|
override |
|
inlineoverride |
|
inlineoverride |