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:
parent
7afd4977ca
commit
43333984a3
|
|
@ -863,6 +863,15 @@ class Executor:
|
||||||
)
|
)
|
||||||
self._log.write_plain(msg)
|
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:
|
async def cancel_execution(self, correlation_id: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Request cancellation of an in-flight execution by setting _cancelled
|
Request cancellation of an in-flight execution by setting _cancelled
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue