PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key > Class Template Reference

#include <native_toolkit.hpp>

Public Member Functions

 OrderBook (NativeStrategyHost &host) noexcept
 
std::optional< native_order::RequestHandlehandle (const Key &key) const
 
bool contains (const Key &key) const
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
std::optional< native_order::RequestHandlesubmit_or_replace (const Key &key, const native_order::Request &request, native_order::ReplaceOptions options={})
 
native_order::CancelStatus cancel (const Key &key)
 
void forget (const Key &key)
 

Detailed Description

template<class Key>
class pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >

Definition at line 124 of file native_toolkit.hpp.

Constructor & Destructor Documentation

◆ OrderBook()

template<class Key>
pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::OrderBook ( NativeStrategyHost & host)
inlineexplicitnoexcept

Definition at line 126 of file native_toolkit.hpp.

Member Function Documentation

◆ handle()

template<class Key>
std::optional< native_order::RequestHandle > pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::handle ( const Key & key) const
inline

Definition at line 128 of file native_toolkit.hpp.

◆ contains()

template<class Key>
bool pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::contains ( const Key & key) const
inline

Definition at line 133 of file native_toolkit.hpp.

◆ size()

template<class Key>
std::size_t pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::size ( ) const
inlinenoexcept

Definition at line 134 of file native_toolkit.hpp.

◆ empty()

template<class Key>
bool pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::empty ( ) const
inlinenoexcept

Definition at line 135 of file native_toolkit.hpp.

◆ submit_or_replace()

template<class Key>
std::optional< native_order::RequestHandle > pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::submit_or_replace ( const Key & key,
const native_order::Request & request,
native_order::ReplaceOptions options = {} )
inline

Definition at line 147 of file native_toolkit.hpp.

◆ cancel()

template<class Key>
native_order::CancelStatus pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::cancel ( const Key & key)
inline

Definition at line 175 of file native_toolkit.hpp.

◆ forget()

template<class Key>
void pineforge::native_toolkit::native_toolkit_v1::OrderBook< Key >::forget ( const Key & key)
inline

Definition at line 187 of file native_toolkit.hpp.


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