|
PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
|
A kernel-issued liquidation that actually filled. More...
#include <native_order.hpp>
Public Member Functions | |
| const RequestHandle & | handle () const noexcept |
| const Request & | request () const noexcept |
Data Fields | |
| uint64_t | ordinal = 0 |
| DefinitionRef | definition |
| EventId | applied |
| MatchCursor | cursor {} |
| Side | side = Side::Long |
| double | mark = 0.0 |
| double | equity = 0.0 |
| double | required = 0.0 |
| double | liquidation_price = 0.0 |
| double | units = 0.0 |
| double | position_before = 0.0 |
| double | position_after = 0.0 |
A kernel-issued liquidation that actually filled.
It carries the margin facts of that fill, so a host reconstructs the outcome without recomputing the account: mark is the booked resolved price, equity and required are the marked equity and the maintenance requirement of the SURVIVING book at that price, liquidation_price is the level re-solved for what is left, and position_before / position_after are the signed book on either side of the reduction. applied names the ExecutionAppliedEvent that booked it.
Definition at line 1123 of file native_order.hpp.
|
inlinenoexcept |
Definition at line 1136 of file native_order.hpp.
References definition.
|
inlinenoexcept |
Definition at line 1137 of file native_order.hpp.
References definition.
| uint64_t pineforge::native_order::native_order_v6::MarginCallEvent::ordinal = 0 |
Definition at line 1124 of file native_order.hpp.
| DefinitionRef pineforge::native_order::native_order_v6::MarginCallEvent::definition |
Definition at line 1125 of file native_order.hpp.
| EventId pineforge::native_order::native_order_v6::MarginCallEvent::applied |
Definition at line 1126 of file native_order.hpp.
| MatchCursor pineforge::native_order::native_order_v6::MarginCallEvent::cursor {} |
Definition at line 1127 of file native_order.hpp.
| Side pineforge::native_order::native_order_v6::MarginCallEvent::side = Side::Long |
Definition at line 1128 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::mark = 0.0 |
Definition at line 1129 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::equity = 0.0 |
Definition at line 1130 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::required = 0.0 |
Definition at line 1131 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::liquidation_price = 0.0 |
Definition at line 1132 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::units = 0.0 |
Definition at line 1133 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::position_before = 0.0 |
Definition at line 1134 of file native_order.hpp.
| double pineforge::native_order::native_order_v6::MarginCallEvent::position_after = 0.0 |
Definition at line 1135 of file native_order.hpp.