Skip to main content
POST
/
ws
/
ordersPerps
Subscribe: Perps Orders
curl --request POST \
  --url wss://api.ondoperps.xyz/ws/ordersPerps \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": "subscribe",
  "channel": "ordersPerps",
  "markets": [
    "NVDA-USD.P"
  ]
}
'
{
  "type": "update",
  "channel": "ordersPerps",
  "data": [
    {
      "orderId": "197ec08e001658690721be129e7fa595",
      "side": "buy",
      "price": "227.50",
      "size": "10.00",
      "market": "AAPL-USD.P",
      "filledSize": "0.00",
      "filledCost": "0.00",
      "fee": "0.00",
      "status": "open",
      "createdAt": "2025-03-05T14:30:00Z",
      "type": "limit",
      "timeInForce": "GTC"
    }
  ]
}

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

"ordersPerps"

markets
string[]

Markets to filter by. Optional; if omitted, all available markets are used.

Example:
["NVDA-USD.P"]

Response

200 - application/json

Channel update for ordersPerps

type
enum<string>
Available options:
update
channel
enum<string>
Available options:
ordersPerps
data
object[]