45std::string
f64(
double value);
99 std::uint64_t entry_incarnation, std::int64_t close_cause,
100 std::string_view entry_id, std::string_view exit_id,
101 std::string_view exit_comment);
123 const
double* values,
std::int64_t count);
133 std::unique_ptr<State> state_;
LineWriter(const pf_report_sink_fd_v1 &sink)
Adopt without duplicating/closing fd; see report_sink.h for ownership, FIFO SIGPIPE handling and sequ...
void write_x(const pf_trace_entry_t &entry, std::string_view name)
void write_t(std::int64_t n, const pf_trade_t &trade, std::uint64_t entry_incarnation, std::int64_t close_cause, std::string_view entry_id, std::string_view exit_id, std::string_view exit_comment)
Emit T in exactly this field order (3.7:826): n,side,entry_time, exit_time,entry_price,...
void write_o(std::int64_t row, std::int64_t open_ms, std::int64_t close_ms, const double *values, std::int64_t count)
LineWriter(const pf_report_sink_v1 &sink)
Descriptor strings are copied, as required by 6:1307.
pf_report_sink_diagnostics_v1 diagnostics() const noexcept
Bounded provenance of the successfully emitted E/T records.
void abandon()
At a completed-bar boundary, flush the last complete records and permanently abandon this stream with...
void write_h(std::uint64_t hash)
void write_header(const RecordSet &records)
Open the owned path, or validate the borrowed stream fd without creating anything,...
void write_k(const double *values, std::int64_t count)
Trailer write_trailer()
Emit trailer,version,counts,sha256 in that key order, version=1 (3.7:833-837).
void write_e(const pf_equity_point_t &point)
Emit ["E",time_ms,equity,open_profit] (3.7:825), in time order.
void write_v(const pf_output_event_v1_t &event, std::string_view message)
std::string escaped_string(std::string_view utf8)
One complete quoted JSON string (3.7:878-879).
std::string f64(double value)
One complete JSON f64 token, exactly Python 3 repr(double), or "null" for non-finite values (3....
Single per-script-bar equity point.
One recorded event, copied by strategy_outputs_event_get.
Fixed-size annualization provenance from the emitted v1 records.
Borrowed sequential stream sink descriptor (CX-SINK-B1/B2).
Path sink descriptor (DESIGN 6:1283-1289, 1307-1309).
Single per-bar trace entry.
Closed-trade record returned in pf_report_t::trades.
Run properties selecting the fixed version-1 descriptors (3.7:795-809, 823-831; 6:1310-1311).
std::int64_t series_slots
std::int64_t constant_count
Trailer values for mapping to the C receipt (3.7:833-837; 6:1291-1298).