Skip to main content
POST
/
ws
/
markPricesPerps
Subscribe: Perps Mark Prices
curl --request POST \
  --url wss://api.ondoperps.xyz/ws/markPricesPerps \
  --header 'Content-Type: application/json' \
  --data '
{
  "op": "subscribe",
  "channel": "markPricesPerps",
  "markets": [
    "NVDA-USD.P"
  ]
}
'
{
  "type": "update",
  "channel": "markPricesPerps",
  "data": [
    {
      "market": "AAPL-USD.P",
      "markPrice": "227.50"
    }
  ]
}

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

"markPricesPerps"

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 markPricesPerps

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