curl --request GET \
--url https://test.deribit.com/api/v2/private/create_block_rfq \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "private/create_block_rfq",
"params": {
"legs": [
{
"instrument_name": "BTC-15NOV24",
"amount": 20000,
"direction": "sell"
}
],
"hedge": {
"amount": 10,
"direction": "buy",
"price": 70000,
"instrument_name": "BTC-PERPETUAL"
},
"label": "example",
"makers": [
"MAKER1"
]
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"label": "example",
"state": "created",
"amount": 20000,
"role": "taker",
"bids": [],
"asks": [],
"combo_id": "BTC-15NOV24",
"legs": [
{
"direction": "sell",
"instrument_name": "BTC-15NOV24",
"ratio": 1
}
],
"creation_timestamp": 1731062187555,
"block_rfq_id": 507,
"expiration_timestamp": 1731062487555,
"hedge": {
"amount": 10,
"direction": "buy",
"price": 70000,
"instrument_name": "BTC-PERPETUAL"
},
"makers": [
"MAKER1"
]
}
}Taker method
Creates a new Block RFQ. Use private/get_block_rfqs to retrieve Block RFQ information.
Block RFQ pre-allocation: The taker can split the total amount between different (sub)accounts using the trade_allocations parameter. The taker can also allocate to himself. Each allocation must specify either user_id (for direct allocation) or client_info object (for broker allocation), and amount.
๐ Related Article: Deribit Block RFQ API walkthrough
Scope: block_rfq:read_write
curl --request GET \
--url https://test.deribit.com/api/v2/private/create_block_rfq \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "private/create_block_rfq",
"params": {
"legs": [
{
"instrument_name": "BTC-15NOV24",
"amount": 20000,
"direction": "sell"
}
],
"hedge": {
"amount": 10,
"direction": "buy",
"price": 70000,
"instrument_name": "BTC-PERPETUAL"
},
"label": "example",
"makers": [
"MAKER1"
]
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"label": "example",
"state": "created",
"amount": 20000,
"role": "taker",
"bids": [],
"asks": [],
"combo_id": "BTC-15NOV24",
"legs": [
{
"direction": "sell",
"instrument_name": "BTC-15NOV24",
"ratio": 1
}
],
"creation_timestamp": 1731062187555,
"block_rfq_id": 507,
"expiration_timestamp": 1731062487555,
"hedge": {
"amount": 10,
"direction": "buy",
"price": 70000,
"instrument_name": "BTC-PERPETUAL"
},
"makers": [
"MAKER1"
]
}
}List of legs used to create Block RFQ
Hide child attributes
Instrument name
"BTC-PERPETUAL"
It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.
Direction of selected leg
buy, sell List of allocations for Block RFQ pre-allocation. Allows to split amount between different (sub)accounts or broker clients. Each allocation must specify either user_id (for direct allocation) or client_info object (for broker allocation), and amount.
Hide child attributes
User ID (subaccount or main account) to allocate part of the RFQ amount.
Client allocation info for brokers.
Amount allocated to this user or client.
Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ JSON string containing: instrument_name, direction, price, amount
User defined label for the Block RFQ (maximum 64 characters)
List of targeted Block RFQ makers. Only those makers will be notified about created Block RFQ. If the list is empty, all available makers will be targeted.
Determines whether the RFQ is non-anonymous, revealing both taker and maker aliases. It can be set to false (anonymous mode) only when at least 5 makers are targeted. Default value is true.
Success response
The JSON-RPC version (2.0)
2.0 Hide child attributes
The timestamp when Block RFQ was created (milliseconds since the Unix epoch)
1536569522277
The timestamp when the Block RFQ will expire (milliseconds since the UNIX epoch)
1536569522277
ID of the Block RFQ
Role of the user in Block RFQ
taker, maker State of the Block RFQ
open, filled, cancelled, expired Rating of the taker
List of targeted Block RFQ makers
This value multiplied by the ratio of a leg gives trade size on that leg.
Minimum amount for trading
Hide child attributes
Maker of the quote
Price of a quote
Timestamp of the last update of the quote (milliseconds since the UNIX epoch)
1536569522277
Execution instruction of the quote. Default - any_part_of
"all_or_none (AON)" - The quote can only be filled entirely or not at all, ensuring that its amount matches the amount specified in the Block RFQ. Additionally, 'all_or_none' quotes have priority over 'any_part_of' quotes at the same price level."any_part_of (APO)" - The quote can be filled either partially or fully, with the filled amount potentially being less than the Block RFQ amount.any_part_of, all_or_none This value multiplied by the ratio of a leg gives trade size on that leg.
The timestamp when the quote expires (milliseconds since the Unix epoch), equal to the earliest expiry of placed quotes
1745312540321
Hide child attributes
Maker of the quote
Price of a quote
Timestamp of the last update of the quote (milliseconds since the UNIX epoch)
1536569522277
Execution instruction of the quote. Default - any_part_of
"all_or_none (AON)" - The quote can only be filled entirely or not at all, ensuring that its amount matches the amount specified in the Block RFQ. Additionally, 'all_or_none' quotes have priority over 'any_part_of' quotes at the same price level."any_part_of (APO)" - The quote can be filled either partially or fully, with the filled amount potentially being less than the Block RFQ amount.any_part_of, all_or_none This value multiplied by the ratio of a leg gives trade size on that leg.
The timestamp when the quote expires (milliseconds since the Unix epoch), equal to the earliest expiry of placed quotes
1745312540321
Hide child attributes
It represents the requested hedge leg size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.
Unique instrument identifier
"BTC-PERPETUAL"
Direction: buy, or sell
buy, sell Price for a hedge leg
Unique combo identifier
"BTC-FS-31DEC21-PERP"
User defined label for the Block RFQ (maximum 64 characters)
The name of the application that created the Block RFQ on behalf of the user (optional, visible only to taker).
"Example Application"
The mark price for the instrument
Indicates whether the RFQ was created as non-anonymous, meaning taker and maker aliases are visible to counterparties.
Taker alias. Present only when disclosed is true.
"TAKER1"
A list of index prices for the underlying instrument(s) at the time of trade execution.
Indicates whether the RFQ is included in the taker's rating calculation. Present only for closed RFQs created by the requesting taker.
Hide child attributes
Direction: buy, or sell
buy, sell Price in base currency
Trade amount. For options, linear futures, linear perpetuals and spots the amount is denominated in the underlying base currency coin. The inverse perpetuals and inverse futures are denominated in USD units.
Alias of the maker (optional)
Amount of the hedge leg. For linear futures, linear perpetuals and spots the amount is denominated in the underlying base currency coin. The inverse perpetuals and inverse futures are denominated in USD units.
Present only if a trade trigger was placed by the taker and only visible to taker. Only for cases: cancelled (contains the reason for cancellation) and untriggered (contains the information about the trade trigger).
Hide child attributes
Trade trigger state: "untriggered" or "cancelled"
triggered, untriggered, cancelled Price of the trade trigger
Direction of the trade trigger
buy, sell Reason for cancellation, present only when state is cancelled
List of allocations for Block RFQ pre-allocation. Allows to split amount between different (sub)accounts. The taker can also allocate to himself. Visible only to the taker.
Hide child attributes
User ID to allocate part of the RFQ amount. For brokers the User ID is obstructed.
Client allocation info for brokers.
Hide child attributes
ID of a client; available to broker. Represents a group of users under a common name.
ID assigned to a single user in a client; available to broker.
Name of the linked user within the client; available to broker.
Amount allocated to this user or client.
The id that was sent in the request
Was this page helpful?