Skip to Content
Symmio Trading-SDK — the SDK surface for builders on HyperEVM
CoreTP/SLTpSlNotification

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

quoteIdnumber

On-chain quote id when known; falls back to the temp id (may be negative).

primaryIdentifiernumber

Always the raw primary_identifier (0 while pre-chain).

secondaryIdentifiernumber

Always the raw secondary_identifier (the temp id pre-chain).

accountstring | null

SubAccount address the notification belongs to.

conditionalOrderType"take_profit" | "stop_loss" | null

Which side the report is about (TpSlConditionalOrderType), or null.

Wire state — new | edit | pending | cancel(led) | trigger(ed) | close.

successfulboolean

Whether the reported action succeeded.

cohQuoteIdstringoptional

Handler-issued conditional-order id, when present.

Set on close frames — the fill details from the handler.

errorCodenumberoptional

Set when successful: false.

errorMessagestringoptional

Set when successful: false.

timestampnumberoptional

Frame timestamp (seconds), when present.

The raw decoded wire frame.

Last updated on