OpenPit C++ SDK
C++17 SDK for the OpenPit pre-trade risk engine
Loading...
Searching...
No Matches
openpit::asyncengine::AsyncRequest< Driver > Class Template Reference

Async wrapper around a start-stage request. More...

#include <typed.hpp>

Inheritance diagram for openpit::asyncengine::AsyncRequest< Driver >:

Public Member Functions

::openpit::param::AccountId AccountId () const noexcept
 AsyncRequest (::openpit::pretrade::Request request, TypedAsyncEngine< Driver > *engine, ::openpit::param::AccountId accountId)
Future< std::monostate > Close (std::chrono::nanoseconds timeout=std::chrono::nanoseconds(0))
PairFuture< std::shared_ptr< AsyncReservation< Driver > >, std::vector<::openpit::pretrade::Reject > > Execute (std::chrono::nanoseconds timeout=std::chrono::nanoseconds(0))

Detailed Description

template<typename Driver>
class openpit::asyncengine::AsyncRequest< Driver >

Async wrapper around a start-stage request.

Constructor & Destructor Documentation

◆ AsyncRequest()

template<typename Driver>
openpit::asyncengine::AsyncRequest< Driver >::AsyncRequest ( ::openpit::pretrade::Request request,
TypedAsyncEngine< Driver > * engine,
::openpit::param::AccountId accountId )
inline

Member Function Documentation

◆ AccountId()

template<typename Driver>
::openpit::param::AccountId openpit::asyncengine::AsyncRequest< Driver >::AccountId ( ) const
inlinenodiscardnoexcept

◆ Close()

template<typename Driver>
Future< std::monostate > openpit::asyncengine::AsyncRequest< Driver >::Close ( std::chrono::nanoseconds timeout = std::chrono::nanoseconds(0))
nodiscard

◆ Execute()

template<typename Driver>
PairFuture< std::shared_ptr< AsyncReservation< Driver > >, std::vector<::openpit::pretrade::Reject > > openpit::asyncengine::AsyncRequest< Driver >::Execute ( std::chrono::nanoseconds timeout = std::chrono::nanoseconds(0))
nodiscard