Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/unsubscribe \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 3370,
  "method": "private/unsubscribe",
  "params": {
    "channels": [
      "deribit_price_index.btc_usd"
    ]
  }
}
'
{
  "jsonrpc": "2.0",
  "id": 3370,
  "result": [
    "deribit_price_index.btc_usd"
  ]
}

Query Parameters

channels
string[]
required

A list of channels to unsubscribe from. Only successfully unsubscribed channels will be returned in the result.

Example:
["deribit_price_index.btc_usd"]

Response

Successfully unsubscribed from channels

jsonrpc
string
Example:

"2.0"

id
integer
Example:

8691

result
string[]

List of channels that were successfully unsubscribed in this request

Example:
["deribit_price_index.btc_usd"]