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

A single filled order (signal name, price, signed quantity). More...

#include <filled_orders.hpp>

Public Member Functions

std::string_view orderId () const
 Signal/order id (e.g. entry or exit name).
double price () const
 Fill price.
double quantity () const
 Signed quantity (positive = buy, negative = sell).

Friends

class FilledOrdersIterator

Detailed Description

A single filled order (signal name, price, signed quantity).

Written by FilledOrdersIterator::next(). The order_id view is valid until the next next() call or until the iterator is destroyed.

Definition at line 28 of file filled_orders.hpp.

Member Function Documentation

◆ orderId()

std::string_view openpine::FilledOrder::orderId ( ) const
inline

Signal/order id (e.g. entry or exit name).

Definition at line 31 of file filled_orders.hpp.

References openpine::detail::refToView().

◆ price()

double openpine::FilledOrder::price ( ) const
inline

Fill price.

Definition at line 36 of file filled_orders.hpp.

◆ quantity()

double openpine::FilledOrder::quantity ( ) const
inline

Signed quantity (positive = buy, negative = sell).

Definition at line 39 of file filled_orders.hpp.

◆ FilledOrdersIterator

friend class FilledOrdersIterator
friend

Definition at line 43 of file filled_orders.hpp.

References FilledOrdersIterator.

Referenced by FilledOrdersIterator.


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