Skip to main content
POST
/
ws
/
cancelAllOrdersAfterPerps
Subscribe: Perps Dead Man's Switch
curl --request POST \
  --url wss://api.ondoperps.xyz/ws/cancelAllOrdersAfterPerps \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": "subscribe",
  "channel": "cancelAllOrdersAfterPerps",
  "timeout_seconds": 30
}
'
{
  "data": {}
}

Body

application/json
op
enum<string>
required

Operation type.

Available options:
subscribe,
unsubscribe
Example:

"subscribe"

channel
enum<string>
required

Channel for this subscription.

Available options:
cancelAllOrdersAfterPerps
Example:

"cancelAllOrdersAfterPerps"

timeout_seconds
integer
required

Dead man's switch timeout, in seconds. All resting orders are cancelled if no further heartbeat is received within this window.

Example:

30

Response

200 - application/json

Channel update for cancelAllOrdersAfterPerps

type
enum<string>
Available options:
update
channel
enum<string>
Available options:
cancelAllOrdersAfterPerps
data
object