OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
Loading...
Searching...
No Matches
openpine::FilledOrdersIterator Class Reference

Iterator over filled orders (strategy order fills) on a single bar. More...

#include <filled_orders.hpp>

Public Member Functions

 FilledOrdersIterator (ffi::FilledOrdersIterator *p)
 Constructs an iterator from the C ABI handle.
bool next (FilledOrder &out)
 Advances to the next filled order and writes it into out.

Detailed Description

Iterator over filled orders (strategy order fills) on a single bar.

Wraps the opaque iterator from the C ABI and frees it on destruction.

Definition at line 51 of file filled_orders.hpp.

Constructor & Destructor Documentation

◆ FilledOrdersIterator()

openpine::FilledOrdersIterator::FilledOrdersIterator ( ffi::FilledOrdersIterator * p)
inlineexplicit

Constructs an iterator from the C ABI handle.

Parameters
pOpaque iterator from chartFilledOrdersOnBar.

Definition at line 62 of file filled_orders.hpp.

Member Function Documentation

◆ next()

bool openpine::FilledOrdersIterator::next ( FilledOrder & out)
inline

Advances to the next filled order and writes it into out.

Parameters
outFilledOrder to fill; orderId() view valid until next call.
Returns
true if there is a next order, false otherwise.

Definition at line 70 of file filled_orders.hpp.


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