feat: print execution reports to stdout for all statuses

Screen-print every completed trade (filled/failed/aborted) with
correlation_id, triangle, predicted_bps, effective_bps, profit, and
error (if any).  Flushes immediately for real-time visibility.
This commit is contained in:
nicolas 2026-05-24 20:50:16 -03:00
parent 7afd4977ca
commit 43333984a3
1 changed files with 9 additions and 0 deletions

View File

@ -863,6 +863,15 @@ class Executor:
)
self._log.write_plain(msg)
print(
f"{ts_iso} {report.status.upper()} | corr={report.correlation_id} | "
f"triangle={report.triangle_key} | predicted_bps={report.predicted_bps:.2f} | "
f"effective_bps={report.effective_bps:.2f} | "
f"profit={report.profit:.4f}"
f"{f' | error={report.error}' if report.error else ''}",
flush=True,
)
async def cancel_execution(self, correlation_id: str) -> bool:
"""
Request cancellation of an in-flight execution by setting _cancelled