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 } }
Verifies and creates a combo book or returns an existing combo matching given trades
Scope: trade:read_write
trade:read_write
Try in API console
List of trades used to create a combo JSON string containing array of objects
Success response
The JSON-RPC version (2.0)
2.0
Show child attributes
The id that was sent in the request
Was this page helpful?