INNER CODE UNIT · Python

_report_unconfirmed_intent

qrak/LLM_trader · src/app.py:488

    async def _report_unconfirmed_intent(self) -> None:
        """Alert the operator about a command whose execution the executor never confirmed.

        Wave 2: an entry/UPDATE/CLOSE the bot sent is an INTENT. Silence is not a fill:
        the local state stays pending/unknown, the position is left alone, and this is
        the only place that turns that into a visible alert (never a silent close).
        """
        alert = None
        hook = getattr(self.trading_strategy, "take_unconfirmed_intent_alert", None)
        if callable(hook):
            try:
                alert = hook()
            except Exception as e:  # noqa: BLE001
                self.logger.warning("Failed to read the unconfirmed-intent alert: %s", e)
        if not isinstance(alert, str) or not alert:
            return
        self.logger.critical("UNCONFIRMED POSITION INTENT: %s", alert)
        if self.discord_notifier is None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…