PineForge
v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
execution_close_scope.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstdint>
4
#include <variant>
5
6
namespace
pineforge::execution
{
7
inline
namespace
close_scope_v1
{
8
9
struct
Book
{};
10
11
// Run-local opening provenance, not a unique individual fill-lot identity.
12
// The trusted caller owns run identity; settlement checks the current cycle
13
// and selects every surviving physical fragment of this incarnation.
14
struct
OpeningExposure
{
15
std::uint64_t
incarnation
= 0;
16
std::int64_t
cycle
= 0;
17
};
18
19
using
CloseScope
= std::variant<Book, OpeningExposure>;
20
21
static_assert
(std::variant_size_v<CloseScope> == 2,
22
"CloseScope is Book|OpeningExposure; do not add alternatives"
);
23
24
}
// inline namespace close_scope_v1
25
}
// namespace pineforge::execution
pineforge::execution::close_scope_v1
Definition
execution_close_scope.hpp:7
pineforge::execution::close_scope_v1::CloseScope
std::variant< Book, OpeningExposure > CloseScope
Definition
execution_close_scope.hpp:19
pineforge::execution
Definition
execution.hpp:12
pineforge::execution::Book
Definition
execution_close_scope.hpp:9
pineforge::execution::close_scope_v1::OpeningExposure
Definition
execution_close_scope.hpp:14
pineforge::execution::close_scope_v1::OpeningExposure::incarnation
std::uint64_t incarnation
Definition
execution_close_scope.hpp:15
pineforge::execution::close_scope_v1::OpeningExposure::cycle
std::int64_t cycle
Definition
execution_close_scope.hpp:16
include
pineforge
execution_close_scope.hpp
PineForge v0.13.1-379-g9b50973 — Apache-2.0 —
github.com/pineforge-4pass/pineforge-engine