TpSlNotification
The normalized TP/SL notification the SDK delivers to consumers. Produced by parseTpSlFrame and delivered by watchTpSlNotifications. camelCase, with quoteId resolved to the on-chain id when the quote has anchored (else the temp id). The original wire frame is preserved on raw.
The pair (primaryIdentifier, secondaryIdentifier) is the temp ↔ on-chain link: a frame that carries both nonzero is the one that reveals the pairing.
Fields
quoteIdnumberOn-chain quote id when known; falls back to the temp id (may be negative).
primaryIdentifiernumberAlways the raw primary_identifier (0 while pre-chain).
secondaryIdentifiernumberAlways the raw secondary_identifier (the temp id pre-chain).
accountstring | nullSubAccount address the notification belongs to.
conditionalOrderType"take_profit" | "stop_loss" | nullWhich side the report is about (TpSlConditionalOrderType), or null.
Wire state — new | edit | pending | cancel(led) | trigger(ed) | close.
successfulbooleanWhether the reported action succeeded.
cohQuoteIdstringoptionalHandler-issued conditional-order id, when present.
Set on close frames — the fill details from the handler.
errorCodenumberoptionalSet when successful: false.
errorMessagestringoptionalSet when successful: false.
timestampnumberoptionalFrame timestamp (seconds), when present.
The raw decoded wire frame.
Related
RawTpSlNotification— the wire frame retained onraw.parseTpSlFrame/watchTpSlNotifications— where it comes from.