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

RawTpSlNotification

The raw wire shape of one report frame from the TP/SL notifications WebSocket, after the defilytics envelope is unwrapped. Retained on TpSlNotification.raw for advanced use; the runtime only trusts the outer envelope and walks the data payload through its union type.

Fields

app_namestringoptional

Channel / app name the frame came in on.

primary_identifiernumberoptional

On-chain quote id when anchored, else 0.

secondary_identifiernumberoptional

Temp id pre-anchor, else 0.

addressstringoptional

SubAccount address the frame belongs to.

type"report" | "alarm"optional

Frame kind. Only report frames are parsed.

timestampnumberoptional

Frame timestamp (seconds).

dataRawTpSlNotificationDataoptional

The report payload — see below.

RawTpSlNotificationData

A discriminated union on successful. The successful branch carries fill details; the failure branch carries error info.

successfulboolean

Discriminant. true → details branch, false → error branch.

conditional_order_type"take_profit" | "stop_loss"

Which side (required on success; optional on failure).

stateRawTpSlNotificationState

The lifecycle state (see below).

coh_quote_idstringoptional

Handler-issued conditional-order id.

detailsRawTpSlNotificationDetailsoptional

Fill details (success branch only).

error_codenumberoptional

Failure branch only.

status_codenumberoptional

Failure branch only.

error_messagestringoptional

Failure branch only.

RawTpSlNotificationDetails

trigger_pricenumberoptional

The trigger price on the order.

open_pricenumberoptional

The order’s stamped open price.

close_pricenumberoptional

Fill price when the order closes.

quantity_to_closenumberoptional

Quantity closed by the order.

RawTpSlNotificationState

The wire state union: "new" | "edit" | "pending" | "cancelled" | "canceled" | "cancel" | "triggered" | "trigger" | "close".

Last updated on