PineForge
unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pine_run_failure.hpp
Go to the documentation of this file.
1
#pragma once
2
3
// The run-failure code the Pine adapter's spec refusal carries (run_failure.hpp).
4
// Not installed API.
5
6
#include <
pineforge/native_run_spec.hpp
>
7
#include <
pineforge/run_failure.hpp
>
8
9
namespace
pineforge::source
{
10
11
// The code PineExecutionAdapter::project throws "Pine adapter produced invalid
12
// native run spec field N" with, chosen by the refused field:
13
// symbol facts (5-14, 16-18) -> symbol_metadata_rejected{field}
14
// the quantity grid (22) -> lot_grid_rejected
15
// the strategy's own settings (15, 19-21, 23, 25-28, 39-40, 43-60, 65)
16
// -> strategy_settings_rejected{field}
17
// the run options (3, 4, 29-33, 37) -> run_options_rejected{option}
18
// the installed symbol feeds (66-71) -> symbol_feeds_refused
19
// {kernel_refused_series, field}
20
// every field the adapter builds itself -> engine_invariant
21
// The argument is the field's name in snake_case, never its number.
22
RunFailureValue
run_spec_field_failure
(
NativeRunSpecField
field)
noexcept
;
23
24
// The symbol_feeds_refused `field` of an installed symbol feed's spec field
25
// (66-71), or nullptr for any other field.
26
const
char
*
instrument_feed_field_name
(
NativeRunSpecField
field)
noexcept
;
27
28
}
// namespace pineforge::source
pineforge::native_run_spec_v3::NativeRunSpecField
NativeRunSpecField
Which field a validation refused, in deterministic first-error order.
Definition
native_run_spec.hpp:732
pineforge::source
Definition
exit_payload_readback.hpp:5
pineforge::source::instrument_feed_field_name
const char * instrument_feed_field_name(NativeRunSpecField field) noexcept
Definition
pine_adapter.cpp:2790
pineforge::source::run_spec_field_failure
RunFailureValue run_spec_field_failure(NativeRunSpecField field) noexcept
Definition
pine_adapter.cpp:2802
native_run_spec.hpp
run_failure.hpp
src
source
pine_run_failure.hpp
PineForge unreleased — Apache-2.0 —
github.com/pineforge-4pass/pineforge-engine
—
pineforge.dev