Skip to main content
POST
/
ws
/
liquidationPerps
Subscribe: Perps Liquidation
curl --request POST \
  --url wss://api.ondoperps.xyz/ws/liquidationPerps \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": "subscribe",
  "channel": "liquidationPerps"
}
'
{
  "data": {
    "id": "<string>",
    "time": "2023-11-07T05:31:56Z",
    "initiatedAt": "2023-11-07T05:31:56Z",
    "accountId": "<string>",
    "status": "<string>",
    "insuranceFundUsed": "0.00",
    "adl": true,
    "retryCount": 123,
    "triggeringPositions": [
      {
        "market": "AAPL-USD.P",
        "netQuantity": "10.00",
        "averageEntryPrice": "225.00",
        "usedMargin": "1125.00",
        "unrealizedPnl": "25.00",
        "markPrice": "227.50",
        "liquidationPrice": "180.00",
        "bankruptcyPrice": "170.00",
        "maintenanceMargin": "112.50",
        "notionalValue": "2275.00",
        "leverage": "2.0",
        "netFundingSinceNeutral": "-1.23",
        "stopLossTriggerPrice": "<string>",
        "takeProfitTriggerPrice": "<string>",
        "returnOnEquity": "0.022"
      }
    ],
    "filledQuoteSize": "<string>",
    "filledQuantity": "<string>",
    "reclaimOrderMargin": true
  }
}

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:
liquidationPerps
Example:

"liquidationPerps"

Response

200 - application/json

Channel update for liquidationPerps

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