Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/create_combo \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 6,
  "method": "private/create_combo",
  "params": {
    "trades": [
      {
        "instrument_name": "BTC-29APR22-37500-C",
        "amount": "1",
        "direction": "buy"
      },
      {
        "instrument_name": "BTC-29APR22-37500-P",
        "amount": "1",
        "direction": "sell"
      }
    ]
  }
}
'
{
  "jsonrpc": "2.0",
  "id": 6,
  "result": {
    "state_timestamp": 1650960943922,
    "state": "active",
    "legs": [
      {
        "instrument_name": "BTC-29APR22-37500-C",
        "amount": 1
      },
      {
        "instrument_name": "BTC-29APR22-37500-P",
        "amount": -1
      }
    ],
    "id": "BTC-REV-29APR22-37500",
    "instrument_id": 52,
    "creation_timestamp": 1650960943000
  }
}

Query Parameters

trades
string
required

List of trades used to create a combo JSON string containing array of objects

Response

200 - application/json

Success response

jsonrpc
enum<string>
required

The JSON-RPC version (2.0)

Available options:
2.0
result
object
required
id
integer

The id that was sent in the request