07.4.3.16 — Production Execution Pricing Layer
This commit is contained in:
@@ -108,6 +108,10 @@ class AutoTradeRunner:
|
||||
MarketDataRunner.start(
|
||||
symbol_provider=lambda: service.get_state().symbol,
|
||||
interval_seconds=1,
|
||||
runtime_key="auto",
|
||||
screen="auto",
|
||||
action="market_data",
|
||||
runtime_label="[AUTO]",
|
||||
)
|
||||
|
||||
if cls._task is not None and not cls._task.done():
|
||||
@@ -117,7 +121,7 @@ class AutoTradeRunner:
|
||||
|
||||
@classmethod
|
||||
def stop(cls) -> None:
|
||||
MarketDataRunner.stop()
|
||||
MarketDataRunner.stop("auto")
|
||||
|
||||
if cls._task is None:
|
||||
return
|
||||
@@ -134,7 +138,7 @@ class AutoTradeRunner:
|
||||
|
||||
if state.status == "OFF":
|
||||
cls._task = None
|
||||
MarketDataRunner.stop()
|
||||
MarketDataRunner.stop("auto")
|
||||
break
|
||||
|
||||
service.run_cycle()
|
||||
@@ -346,6 +350,7 @@ class AutoTradeRunner:
|
||||
f"{payload.get('risk_reason')}:"
|
||||
f"{payload.get('is_forced')}:"
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def _build_execution_alert_text(
|
||||
cls,
|
||||
@@ -416,7 +421,7 @@ class AutoTradeRunner:
|
||||
f"New size: {new_size}\n\n"
|
||||
f"PnL: {pnl}"
|
||||
)
|
||||
|
||||
|
||||
return "<b>📄 Paper execution event</b>"
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user