v2

OpenAPI 3.0.02026-07-311824171.4 MB
Block RFQ
Private

Taker method

Allows Block RFQ taker to accept a quote by sending a single crossing price. The order can be either filled immediately (fill_or_kill) or remain active until cancelled (good_til_cancelled).

Note: After Block RFQ creation, a grace period of 5 seconds begins, during which the taker cannot see quotes or trade the Block RFQ.

Use private/get_block_rfqs to retrieve Block RFQ information, or private/cancel_block_rfq to cancel a Block RFQ.

📖 Related Article: Deribit Block RFQ API walkthrough

Scope: block_rfq:read_write

Try in API console

get/private/accept_block_rfq

Query parameters

block_rfq_idinteger required

ID of the Block RFQ

pricenumber required

Maximum acceptable price for execution

amountnumber required

It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.

This value multiplied by the ratio of a leg gives trade size on that leg.

direction'buy' | 'sell' required

Direction: buy, or sell

Direction of the trade from the taker perspective

hedgestring

JSON string containing: instrument_name, direction, price, amount

Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ

instrument_namestring

Unique instrument identifier

direction'buy' | 'sell'

Direction: buy, or sell

ratiointeger

Ratio of amount between legs

List of legs used to trade Block RFQ

[
  {
    "instrument_name": "BTC-PERPETUAL"
  }
]
time_in_force'fill_or_kill' | 'good_til_cancelled' required
Example:fill_or_kill

Specifies how long the order should remain active

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

Example response

{
  "result": {
    "block_trades": [
      {
        "id": "154",
        "timestamp": 1536569522277,
        "trades": [
          {
            "instrument_name": "BTC-PERPETUAL",
            "timestamp": 1517329113791,
            "starbase_timestamp": 1536569522277000000,
            "starbase_order_id": 103148386170,
            "block_trade_id": "154",
            "block_trade_leg_count": 3
          }
        ],
        "app_name": "Example Application",
        "broker_code": "2krM7sJsx",
        "broker_name": "Test Broker"
      }
    ]
  }
}