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

Query Parameters

trades
object[]
required

List of trades used to create a combo

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