PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome Struct Reference

#include <native_toolkit.hpp>

Public Member Functions

bool requested () const noexcept
 
bool accepted () const noexcept
 
bool rejected () const noexcept
 
std::optional< native_order::RequestHandle > handle () const
 
std::optional< native_order::RequestRejectReason > reason () const
 

Data Fields

BracketLegState state = BracketLegState::NotRequested
 
std::optional< native_order::SubmitResult > result
 

Detailed Description

Definition at line 77 of file native_toolkit.hpp.

Member Function Documentation

◆ requested()

bool pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::requested ( ) const
inlinenoexcept

◆ accepted()

bool pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::accepted ( ) const
inlinenoexcept

◆ rejected()

bool pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::rejected ( ) const
inlinenoexcept

Definition at line 83 of file native_toolkit.hpp.

References pineforge::native_toolkit::native_toolkit_v1::Rejected, and state.

Referenced by reason().

◆ handle()

std::optional< native_order::RequestHandle > pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::handle ( ) const
inline

Definition at line 86 of file native_toolkit.hpp.

References accepted(), and result.

◆ reason()

std::optional< native_order::RequestRejectReason > pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::reason ( ) const
inline

Definition at line 91 of file native_toolkit.hpp.

References rejected(), and result.

Field Documentation

◆ state

BracketLegState pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::state = BracketLegState::NotRequested

Definition at line 78 of file native_toolkit.hpp.

Referenced by accepted(), rejected(), and requested().

◆ result

std::optional<native_order::SubmitResult> pineforge::native_toolkit::native_toolkit_v1::BracketLegOutcome::result

Definition at line 79 of file native_toolkit.hpp.

Referenced by handle(), and reason().


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