algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::runner::OpenInstruction Struct Reference

One instruction of unknown outcome, and the span in which it may have reached the broker. More...

#include <algotradelib/src/runner/journal.hpp>

Collaboration diagram for algotradelib::runner::OpenInstruction:

Public Attributes

JournalEntry entry_
 The instruction, as its first line recorded it (its order_id_ may come from a later line).
std::chrono::system_clock::time_point opened_at_ {}
 When the send began.
std::optional< std::chrono::system_clock::time_point > closed_at_
 When the send was answered: by an INDETERMINATE line in unresolved_instructions, by any answer in recorded_placements.
bool answered_ {false}
 Whether an INDETERMINATE line answered it.
std::string detail_
 What the journal says went wrong.

Detailed Description

One instruction of unknown outcome, and the span in which it may have reached the broker.

Either a PENDING line with no answer (the span's end is unknown), or one answered INDETERMINATE (the two lines bracket the send exactly).

Definition at line 510 of file journal.hpp.

Member Data Documentation

◆ answered_

bool algotradelib::runner::OpenInstruction::answered_ {false}

Whether an INDETERMINATE line answered it.

Definition at line 521 of file journal.hpp.

Referenced by algotradelib::runner::unresolved_instructions().

◆ closed_at_

std::optional<std::chrono::system_clock::time_point> algotradelib::runner::OpenInstruction::closed_at_

When the send was answered: by an INDETERMINATE line in unresolved_instructions, by any answer in recorded_placements.

Definition at line 519 of file journal.hpp.

Referenced by algotradelib::runner::instruction_sent_by(), and algotradelib::runner::unresolved_instructions().

◆ detail_

std::string algotradelib::runner::OpenInstruction::detail_

◆ entry_

◆ opened_at_


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