PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_fx_curve_v1 Namespace Reference

Data Structures

struct  NativeFxCurve
 An immutable account-currency FX curve: parallel arrays of effective-from timestamps in epoch milliseconds and the account-currency units per one unit of the symbol's quote currency. More...
 
struct  NativeFxCurveValidation
 What validate_native_fx_curve and configure_native_fx_curve report: the error and the index of the element that failed. More...
 

Enumerations

enum class  NativeFxCurveError : std::uint8_t {
  None = 0 ,
  LengthMismatch = 1 ,
  NotStrictlyIncreasing = 2 ,
  NotFinitePositive = 3 ,
  AllocationFailure = 4 ,
  WrongPhase = 5
}
 Why a curve was refused. More...
 

Functions

NativeFxCurveValidation validate_native_fx_curve (const NativeFxCurve &curve) noexcept
 
std::uint64_t native_fx_curve_digest (const NativeFxCurve &curve) noexcept
 

Enumeration Type Documentation

◆ NativeFxCurveError

enum class pineforge::native_fx_curve_v1::NativeFxCurveError : std::uint8_t
strong

Why a curve was refused.

LengthMismatch means the two arrays differ in length (reported at index 0); NotStrictlyIncreasing and NotFinitePositive name the first bad timestamp or rate; WrongPhase means the host was no longer Ready. A refusal leaves the staged curve as it was.

Enumerator
None 
LengthMismatch 
NotStrictlyIncreasing 
NotFinitePositive 
AllocationFailure 
WrongPhase 

Definition at line 28 of file native_fx_curve.hpp.

Function Documentation

◆ validate_native_fx_curve()

NativeFxCurveValidation pineforge::native_fx_curve_v1::validate_native_fx_curve ( const NativeFxCurve & curve)
noexcept

◆ native_fx_curve_digest()

std::uint64_t pineforge::native_fx_curve_v1::native_fx_curve_digest ( const NativeFxCurve & curve)
noexcept