162 return timestamp == interval.open_ms || timestamp == interval.eligible_open_ms;
169 return interval.next_period_open_ms;
223 constexpr bool ok() const noexcept {
226 constexpr explicit operator bool() const noexcept {
return ok(); }
virtual void on_native_excursion(const NativeDriverPoint &point)=0
A point that updates open lots' favorable and adverse excursions without offering a match.
virtual uint64_t allocate_native_ordinal()=0
The consumer's ordinal allocator, called by the pump for every event it produces.
virtual void on_native_calculation(const Bar &script_bar, const NativeCoordinate &coordinate)=0
The script bar's calculation point, with the complete script bar and its coordinate.
virtual void on_native_matching_point(const NativeDriverPoint &point)=0
A point at which live requests may match.
virtual ~INativeDriverSink()=default
NativeInputPreflightResult preflight_native_inputs(const NativeRunSpec &spec, const Bar *bars, int n, NativeInputPolicy policy)
Judge a whole bar array against a run spec before any of it is consumed, under NativeInputPolicy::Bat...
bool native_confirmed_bar_label_admitted(const native_calendar::NativeInterval &interval, int64_t timestamp) noexcept
constexpr const char * kNativeConsumerSemanticVersion
constexpr const char * kNativeDriverSemanticVersion
int64_t native_canonical_input_completion(const native_calendar::NativeInterval &interval) noexcept
NativeCompletionKind
How a script interval or a higher-timeframe bucket was closed.
constexpr const char * kNativeCalendarSemanticVersion
NativeInputPreflightError
Why a bar array was refused before the run touched anything.
bool native_bar_structurally_valid(const Bar &bar) noexcept
Whether a bar can be admitted at all: finite positive OHLC with high >= max(open, close) and low <= m...
NativePathPhase
Which leg of a modeled OHLC walk a point sits on.
NativePriceProvenance
Where a driver point's price came from.
Everything the kernel knows about WHERE a point is, as one owning value: its event ordinal,...
NativeCompletionKind completion
int64_t next_input_open_ms
int64_t source_price_time_ms
int64_t next_period_open_ms
NativePathPhase path_phase
int64_t effective_time_ms
int64_t last_traded_close_ms
NativePriceProvenance provenance
native_calendar::NativeInterval input_interval
NativeDriverStatistics driver_statistics
int64_t decision_floor_ms
native_calendar::NativeInterval script_interval
int64_t script_bar_open_ms
NativeCoordinate coordinate
One point the driver produced: its coordinate, the raw price before slippage or any grid,...
NativeCoordinate coordinate
std::optional< uint64_t > sequence
uint64_t sub_bars_processed
int sub_bars_per_script_bar
uint64_t sample_ticks_processed
bool intrabar_path_enabled
One complete setup value, staged/copied by NativeStrategyHost before it is applied at begin.