curl --request GET \
--url https://test.deribit.com/api/v2/private/cancel_block_rfq \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "private/cancel_block_rfq",
"params": {
"block_rfq_id": 366
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"creation_timestamp": 1729855159611,
"block_rfq_id": 366,
"expiration_timestamp": 1729855459611,
"role": "taker",
"asks": [],
"bids": [],
"makers": [],
"amount": 100000,
"legs": [
{
"ratio": 1,
"instrument_name": "BTC-1NOV24",
"direction": "sell"
},
{
"ratio": 1,
"instrument_name": "BTC-PERPETUAL",
"direction": "buy"
}
],
"combo_id": "BTC-FS-1NOV24_PERP",
"state": "cancelled",
"label": "example"
}
}Taker method
Cancels a Block RFQ using the specified block_rfq_id.
Use private/get_block_rfqs to retrieve Block RFQ information, or private/create_block_rfq to create a new Block RFQ.
๐ Related Article: Deribit Block RFQ API walkthrough
Scope: block_rfq:read_write
curl --request GET \
--url https://test.deribit.com/api/v2/private/cancel_block_rfq \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "private/cancel_block_rfq",
"params": {
"block_rfq_id": 366
}
}
'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"creation_timestamp": 1729855159611,
"block_rfq_id": 366,
"expiration_timestamp": 1729855459611,
"role": "taker",
"asks": [],
"bids": [],
"makers": [],
"amount": 100000,
"legs": [
{
"ratio": 1,
"instrument_name": "BTC-1NOV24",
"direction": "sell"
},
{
"ratio": 1,
"instrument_name": "BTC-PERPETUAL",
"direction": "buy"
}
],
"combo_id": "BTC-FS-1NOV24_PERP",
"state": "cancelled",
"label": "example"
}
}ID of the Block RFQ
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?