PineForge v1.4.0-4-g873b25da
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_order::native_order_v7::ExecutionAppliedEvent Struct Reference

One committed execution: the definition, the cursor, the resolved price and units, the scope it acted on, the committed closed-row range, the cycle on either side, and the ticket it booked under. More...

#include <native_order.hpp>

Public Member Functions

const RequestHandle & handle () const noexcept
 
const Request & request () const noexcept
 
const Birth & birth () const noexcept
 
int64_t effective_time_ms () const noexcept
 
int64_t interval_open_ms () const noexcept
 
int64_t interval_last_traded_close_ms () const noexcept
 
int interval_index () const noexcept
 
std::uint8_t provenance () const noexcept
 

Data Fields

uint64_t ordinal = 0
 
DefinitionRef definition
 
double raw_price = 0.0
 
double resolved_price = 0.0
 
double current_ticket = 0.0
 
std::size_t first_trade_index = 0
 
std::size_t closed_trade_count = 0
 
uint64_t opened_lot_incarnation = 0
 
double closed_units = 0.0
 
double opened_units = 0.0
 
double filled_working = 0.0
 
RemainingProjection remaining_before = RemainingProjectionUnbound{}
 
RemainingProjection remaining_after = RemainingProjectionUnbound{}
 
Allowance allowance_before = AllowanceUnset{}
 
Allowance allowance_after = AllowanceUnset{}
 
bool terminal = true
 
std::optional< AppliedTerminalReason > terminal_reason
 
int64_t cycle_before = 0
 
int64_t cycle_after = 0
 
ExecutionScope scope = execution::Book{}
 
MatchCursor cursor {}
 

Detailed Description

One committed execution: the definition, the cursor, the resolved price and units, the scope it acted on, the committed closed-row range, the cycle on either side, and the ticket it booked under.

Delivered to on_native_applied and recorded in native_events(); the account observation that follows it shares its ordinal.

Definition at line 1146 of file native_order.hpp.

Member Function Documentation

◆ handle()

const RequestHandle & pineforge::native_order::native_order_v7::ExecutionAppliedEvent::handle ( ) const
inlinenoexcept

◆ request()

const Request & pineforge::native_order::native_order_v7::ExecutionAppliedEvent::request ( ) const
inlinenoexcept

◆ birth()

const Birth & pineforge::native_order::native_order_v7::ExecutionAppliedEvent::birth ( ) const
inlinenoexcept

Definition at line 1170 of file native_order.hpp.

References definition.

◆ effective_time_ms()

int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::effective_time_ms ( ) const
inlinenoexcept

Definition at line 1171 of file native_order.hpp.

References cursor.

◆ interval_open_ms()

int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::interval_open_ms ( ) const
inlinenoexcept

Definition at line 1172 of file native_order.hpp.

References cursor.

◆ interval_last_traded_close_ms()

int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::interval_last_traded_close_ms ( ) const
inlinenoexcept

Definition at line 1173 of file native_order.hpp.

References cursor.

◆ interval_index()

int pineforge::native_order::native_order_v7::ExecutionAppliedEvent::interval_index ( ) const
inlinenoexcept

Definition at line 1176 of file native_order.hpp.

References cursor.

◆ provenance()

std::uint8_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::provenance ( ) const
inlinenoexcept

Definition at line 1177 of file native_order.hpp.

References cursor.

Field Documentation

◆ ordinal

◆ definition

DefinitionRef pineforge::native_order::native_order_v7::ExecutionAppliedEvent::definition

◆ raw_price

double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::raw_price = 0.0

◆ resolved_price

double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::resolved_price = 0.0

◆ current_ticket

double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::current_ticket = 0.0

Definition at line 1151 of file native_order.hpp.

◆ first_trade_index

std::size_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::first_trade_index = 0

◆ closed_trade_count

std::size_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::closed_trade_count = 0

◆ opened_lot_incarnation

uint64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::opened_lot_incarnation = 0

Definition at line 1154 of file native_order.hpp.

◆ closed_units

double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::closed_units = 0.0

◆ opened_units

double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::opened_units = 0.0

◆ filled_working

double pineforge::native_order::native_order_v7::ExecutionAppliedEvent::filled_working = 0.0

Definition at line 1157 of file native_order.hpp.

◆ remaining_before

RemainingProjection pineforge::native_order::native_order_v7::ExecutionAppliedEvent::remaining_before = RemainingProjectionUnbound{}

Definition at line 1158 of file native_order.hpp.

◆ remaining_after

RemainingProjection pineforge::native_order::native_order_v7::ExecutionAppliedEvent::remaining_after = RemainingProjectionUnbound{}

Definition at line 1159 of file native_order.hpp.

◆ allowance_before

Allowance pineforge::native_order::native_order_v7::ExecutionAppliedEvent::allowance_before = AllowanceUnset{}

Definition at line 1160 of file native_order.hpp.

◆ allowance_after

Allowance pineforge::native_order::native_order_v7::ExecutionAppliedEvent::allowance_after = AllowanceUnset{}

Definition at line 1161 of file native_order.hpp.

◆ terminal

bool pineforge::native_order::native_order_v7::ExecutionAppliedEvent::terminal = true

◆ terminal_reason

std::optional<AppliedTerminalReason> pineforge::native_order::native_order_v7::ExecutionAppliedEvent::terminal_reason

Definition at line 1163 of file native_order.hpp.

◆ cycle_before

int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::cycle_before = 0

Definition at line 1164 of file native_order.hpp.

◆ cycle_after

int64_t pineforge::native_order::native_order_v7::ExecutionAppliedEvent::cycle_after = 0

Definition at line 1165 of file native_order.hpp.

◆ scope

ExecutionScope pineforge::native_order::native_order_v7::ExecutionAppliedEvent::scope = execution::Book{}

Definition at line 1166 of file native_order.hpp.

◆ cursor

MatchCursor pineforge::native_order::native_order_v7::ExecutionAppliedEvent::cursor {}

The documentation for this struct was generated from the following file: