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

Query Parameters

channels
string[]
required

A list of channels to subscribe to.

Example:
["deribit_price_index.btc_usd"]
label
string

Optional label which will be added to notifications of private channels (max 16 characters).

Example:

"TestLabel1"

Response

Success response

jsonrpc
enum<string>
required

The JSON-RPC version (2.0)

Available options:
2.0
result
string[]
required

A list of subscribed channels.

id
integer

The id that was sent in the request