TpSlInfoState
The lifecycle stage of a TP or SL order, mirroring the handler’s state plus two client-side synthetic stages the React layer overlays. Carried on QuoteTpSl.tpState / .slState.
type TpSlInfoState = "loading" | "pending" | "confirming" | "new" | "triggered" | "canceled" | "killed";Values
loading"loading"The current TP/SL is still being fetched.
pending"pending"POST is in flight (mutation isPending).
confirming"confirming"POST returned 200 — the handler accepted the request but hasn’t yet broadcast a report with successful: true.
Treat as “processing” until the WS confirms.
new"new"Handler confirmed the order is live.
triggered"triggered"The price condition fired; the close is in flight.
canceled"canceled"Delete confirmed, or the handler dropped the order.
killed"killed"Terminal — the order was killed by the handler.
Related
QuoteTpSl— carriestpState/slStateof this type.RawTpSlNotification— the wirestatethese are derived from.
Last updated on