PineForge unreleased
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::RequestHandle > handle (const Key &key) const
 
bool contains (const Key &key) const
 
std::size_t size () const noexcept
 
bool empty () const noexcept
 
std::optional< native_order::RequestHandle > submit_or_replace (const Key &key, const native_order::Request &request, native_order::ReplaceOptions options={})
 
OrderBookOutcome submit_or_replace_outcome (const Key &key, const native_order::Request &request, native_order::ReplaceOptions options={})
 
native_order::CancelStatus cancel (const Key &key)
 
OrderBookCancel cancel_outcome (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 309 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 311 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 313 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 318 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 319 of file native_toolkit.hpp.

◆ empty()

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

Definition at line 320 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 337 of file native_toolkit.hpp.

◆ submit_or_replace_outcome()

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

Definition at line 348 of file native_toolkit.hpp.

◆ cancel()

◆ cancel_outcome()

◆ forget()

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

Definition at line 405 of file native_toolkit.hpp.


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