Skip to main content
cURL
curl --request GET \
  --url https://test.deribit.com/api/v2/private/get_pending_block_trades \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 6,
  "method": "private/get_pending_block_trades",
  "params": {}
}
'
{
  "jsonrpc": "2.0",
  "id": 6,
  "result": [
    {
      "nonce": "bt-468nha",
      "app_name": "test",
      "trades": [
        {
          "instrument_name": "BTC-PERPETUAL",
          "price": 70246.66,
          "direction": "buy",
          "amount": 10
        }
      ],
      "role": "maker",
      "user_id": 7,
      "state": {
        "value": "initial",
        "timestamp": 1711468813552
      },
      "timestamp": 1711468813551
    }
  ]
}

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