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

buildTpSlDeleteMessage

Build a delete-conditional-order EIP-712 message body (TpSlDeleteMessage). The salt is generated automatically via generateTpSlSalt; pass salt to override (e.g. to sign deterministically in tests). deleteQuoteTpSl uses this internally.

import { buildTpSlDeleteMessage } from "@symmio/trading-core"; const message = buildTpSlDeleteMessage({ virtualAccount, cohQuoteId: "coh4213", conditionalOrderType: "take_profit", });

Parameters

virtualAccountAddressrequired

PartyA (the VA address) that owns the quote.

cohQuoteIdstringrequired

Handler-issued conditional-order id targeted by the delete.

conditionalOrderType"take_profit" | "stop_loss"required

Which side is being canceled.

saltstringoptional

Override for the auto-generated salt.

Returns

The delete message body (pre-signature). Pass to signTpSlRequest.

Last updated on