Hide stale errors after strategy stop
This commit is contained in:
parent
88ea093525
commit
102f145553
@ -930,7 +930,16 @@ def _issue_is_stale_for_current_state(
|
|||||||
reason = payload.get("reason") or extra.get("reason")
|
reason = payload.get("reason") or extra.get("reason")
|
||||||
reason_key = str(reason or "").strip().lower()
|
reason_key = str(reason or "").strip().lower()
|
||||||
|
|
||||||
if status_key == "STOPPED" and event in {"BROKER_AUTH_EXPIRED", "EXECUTION_BLOCKED", "SIP_NO_FILL"}:
|
if status_key == "STOPPED" and event in {
|
||||||
|
"BROKER_AUTH_EXPIRED",
|
||||||
|
"EXECUTION_BLOCKED",
|
||||||
|
"SIP_NO_FILL",
|
||||||
|
"PRICE_FETCH_ERROR",
|
||||||
|
"HISTORY_LOAD_ERROR",
|
||||||
|
"ENGINE_ERROR",
|
||||||
|
"ORDER_REJECTED",
|
||||||
|
"ORDER_CANCELLED",
|
||||||
|
}:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if event == "EXECUTION_BLOCKED" and reason_key == "market_closed":
|
if event == "EXECUTION_BLOCKED" and reason_key == "market_closed":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user