normalizeNotification
Normalize a raw wire frame into a Notification: camelCase fields, a resolved quoteId (the on-chain id when present, else the temp id), and a classified type.
watchNotifications calls it internally; reach for it directly when consuming the raw feed elsewhere — for example replaying a fixture in tests.
import { normalizeNotification } from "@symmio/trading-core";
const notification = normalizeNotification(rawFrame);Parameters
The raw position-state frame.
Returns
The normalized, classified notification, with the original frame preserved on raw.
Related
- classifyNotification — the classification step applied to
action_status. - parseNotificationFrame — produces the raw frame this consumes.
Last updated on