|
PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
|
The immutable accepted form of one request: its handle, the request value as accepted, its birth (acceptance ordinal and decision floor), its origin (RequestOrigin::Host, or the kernel's own for a liquidation or a risk flatten) and its authority. More...
#include <native_order.hpp>
Data Fields | |
| RequestHandle | handle |
| Request | request |
| Birth | birth |
| std::optional< RequestHandle > | predecessor |
| RequestOrigin | origin = RequestOrigin::Host |
| Appended last so every existing aggregate initializer keeps its meaning. | |
| std::optional< RequestHandle > | root |
| The first handle of this request's replace chain – the request the chain began with, which is how a cohort roster names every request of the chain (cohort_add, cohort_contains). | |
| uint64_t | priority = 0 |
| Where the definition stands in the run's queue: the number of the run's request sequence the command that placed it took. | |
| std::optional< PositionNonflat > | kept_binding |
| The book binding a replace carried forward (ReplaceOptions:: keep_binding): the cycle and side of the book its predecessor was bound to. | |
The immutable accepted form of one request: its handle, the request value as accepted, its birth (acceptance ordinal and decision floor), its origin (RequestOrigin::Host, or the kernel's own for a liquidation or a risk flatten) and its authority.
Every event carries a shared pointer to it, so a reader holds the definition the kernel matched against and not a later re-read.
Definition at line 722 of file native_order.hpp.
| RequestHandle pineforge::native_order::native_order_v7::RequestDefinition::handle |
Definition at line 723 of file native_order.hpp.
| Request pineforge::native_order::native_order_v7::RequestDefinition::request |
Definition at line 724 of file native_order.hpp.
| Birth pineforge::native_order::native_order_v7::RequestDefinition::birth |
Definition at line 725 of file native_order.hpp.
| std::optional<RequestHandle> pineforge::native_order::native_order_v7::RequestDefinition::predecessor |
Definition at line 726 of file native_order.hpp.
| RequestOrigin pineforge::native_order::native_order_v7::RequestDefinition::origin = RequestOrigin::Host |
Appended last so every existing aggregate initializer keeps its meaning.
Definition at line 728 of file native_order.hpp.
| std::optional<RequestHandle> pineforge::native_order::native_order_v7::RequestDefinition::root |
The first handle of this request's replace chain – the request the chain began with, which is how a cohort roster names every request of the chain (cohort_add, cohort_contains).
Empty for a request that replaced nothing: its chain begins with itself. Set by the core at the replace that creates the definition, from the predecessor's own root, so it never needs the predecessor's journal events. Appended after origin for the same reason origin was.
Definition at line 736 of file native_order.hpp.
| uint64_t pineforge::native_order::native_order_v7::RequestDefinition::priority = 0 |
Where the definition stands in the run's queue: the number of the run's request sequence the command that placed it took.
Matching breaks a tie at one cursor oldest number first, and the working book is held in this order (WorkingRequestCore::live). 0, as every accepted request and replace successor has it, means the handle's incarnation, the number its command took; a re-price that kept the handle (ReplaceOptions::keep_handle) sets the number it took instead. Read it through LiveRequest::priority. Appended after root, like it.
Definition at line 745 of file native_order.hpp.
| std::optional<PositionNonflat> pineforge::native_order::native_order_v7::RequestDefinition::kept_binding |
The book binding a replace carried forward (ReplaceOptions:: keep_binding): the cycle and side of the book its predecessor was bound to.
The request starts unbound, and at its first evaluation a live book with this cycle and side binds it with no CloseBoundEvent. Empty for every other definition.
Definition at line 751 of file native_order.hpp.