Deribit Block RFQ API

The Block RFQ API from Deribit β€” 13 operation(s) for block rfq.

OpenAPI Specification

deribit-block-rfq-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Deribit Account Management Block RFQ API
  version: 2.1.1
servers:
- url: https://test.deribit.com/api/v2
tags:
- name: Block RFQ
paths:
  /private/get_block_rfqs:
    get:
      parameters:
      - name: count
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
        description: Count of Block RFQs returned, maximum - `1000`
      - name: state
        in: query
        required: false
        schema:
          type: string
          enum:
          - open
          - filled
          - traded
          - cancelled
          - expired
          - closed
        description: State of Block RFQ
      - name: role
        in: query
        required: false
        schema:
          type: string
          enum:
          - any
          - taker
          - maker
        description: Role of the user in Block RFQ. When the `any` role is selected, the method returns all Block RFQs in which the user has participated, either as the `taker` or as a `maker`
      - name: continuation
        in: query
        required: false
        schema:
          type: integer
        description: The continuation parameter specifies the starting point for fetching historical Block RFQs. When provided, the endpoint returns Block RFQs, starting from the specified ID and continuing backward (e.g., if `continuation` is 50, results will include Block RFQs of ID 49, 48, etc.)
      - name: block_rfq_id
        required: false
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      - in: query
        name: currency
        required: false
        schema:
          $ref: '#/components/schemas/block_rfq_currency'
        description: The currency symbol
      responses:
        '200':
          $ref: '#/components/responses/PrivateGetBlockRfqsResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/get_block_rfqs
                  params:
                    count: 20
                    state: open
                    role: maker
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: 'Returns a list of Block RFQs that were either created by the user or assigned to them as a maker, sorted in descending order.


        `trades` and `mark_price` are only visible for the filled Block RFQ. When a `block_rfq_id` is specified, only that particular Block RFQ will be returned. If called by a `taker`, response will additionally include `makers` list and `label` if previously provided. If called by the `maker`, the `trades` will include the maker''s alias, but only for trades in which this maker participated. Can be optionally filtered by currency.


        Use [private/get_block_rfq_quotes](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfq_quotes) to retrieve quotes for Block RFQs.


        **πŸ“– Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_rfqs)


        '
      x-mint:
        metadata:
          title: private/get_block_rfqs
          og:title: private/get_block_rfqs
          keywords:
          - private/get_block_rfqs
          - count
          - state
          - role
          - continuation
          - block_rfq_id
          - currency
          - block_rfqs
          - creation_timestamp
          - expiration_timestamp
          - taker_rating
          - makers
          - amount
          - min_trade_amount
          - asks
          - bids
          - legs
          - hedge
          - combo_id
          - label
          - app_name
          - mark_price
          - disclosed
          - taker
          - index_prices
          - included_in_taker_rating
          - trades
          - trade_trigger
          - trade_allocations
          - price
          - last_update_timestamp
          - execution_instruction
          - expires_at
          - ratio
          - instrument_name
          - direction
          - maker
          - hedge_amount
          - cancel_reason
          - user_id
          - client_info
          - client_id
          - client_link_id
          - name
        href: /api-reference/block-rfq/private-get_block_rfqs
  /private/create_block_rfq:
    get:
      parameters:
      - in: query
        name: legs
        required: true
        schema:
          type: array
          items:
            type: object
            properties:
              instrument_name:
                $ref: '#/components/schemas/instrument_name'
                description: Instrument name
              amount:
                $ref: '#/components/schemas/amount'
                description: 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:
                $ref: '#/components/schemas/direction'
                description: Direction of selected leg
        description: List of legs used to create Block RFQ
        style: form
        explode: true
      - name: trade_allocations
        in: query
        required: false
        schema:
          type: array
          items:
            type: object
            properties:
              user_id:
                type: integer
                description: User ID (subaccount or main account) to allocate part of the RFQ amount.
              client_info:
                type: object
                properties:
                  client_id:
                    type: integer
                    description: ID of a client; available to broker. Represents a group of users under a common name.
                  client_link_id:
                    type: integer
                    description: ID assigned to a single user in a client; available to broker.
                description: Client allocation info for brokers.
              amount:
                type: number
                description: Amount allocated to this user or client.
        description: 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.
        style: form
        explode: true
      - in: query
        name: hedge
        required: false
        schema:
          type: string
          description: 'JSON string containing: instrument_name, direction, price, amount'
        description: Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ
      - name: label
        in: query
        schema:
          type: string
        required: false
        description: User defined label for the Block RFQ (maximum 64 characters)
      - name: makers
        in: query
        schema:
          type: array
          items:
            type: string
        required: false
        description: 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.
        style: form
        explode: true
      - name: disclosed
        in: query
        required: false
        schema:
          type: boolean
        description: 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`.
      responses:
        '200':
          $ref: '#/components/responses/PrivateCreateBlockRfqResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  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
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: '**Taker method**


        Creates a new Block RFQ. Use [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/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](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read_write`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcreate_block_rfq)


        '
      x-mint:
        metadata:
          title: private/create_block_rfq
          og:title: private/create_block_rfq
          keywords:
          - private/create_block_rfq
          - legs
          - trade_allocations
          - hedge
          - label
          - makers
          - disclosed
          - creation_timestamp
          - expiration_timestamp
          - block_rfq_id
          - role
          - state
          - taker_rating
          - amount
          - min_trade_amount
          - asks
          - bids
          - combo_id
          - app_name
          - mark_price
          - taker
          - index_prices
          - included_in_taker_rating
          - trades
          - trade_trigger
          - price
          - last_update_timestamp
          - execution_instruction
          - expires_at
          - ratio
          - instrument_name
          - direction
          - maker
          - hedge_amount
          - cancel_reason
          - user_id
          - client_info
          - client_id
          - client_link_id
          - name
        href: /api-reference/block-rfq/private-create_block_rfq
  /private/cancel_block_rfq:
    get:
      parameters:
      - name: block_rfq_id
        required: true
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      responses:
        '200':
          $ref: '#/components/responses/PrivateCancelBlockRfqResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/cancel_block_rfq
                  params:
                    block_rfq_id: 366
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: '**Taker method**


        Cancels a Block RFQ using the specified `block_rfq_id`.


        Use [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information, or [private/create_block_rfq](https://docs.deribit.com/api-reference/block-rfq/private-create_block_rfq) to create a new Block RFQ.


        **πŸ“– Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read_write`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_block_rfq)


        '
      x-mint:
        metadata:
          title: private/cancel_block_rfq
          og:title: private/cancel_block_rfq
          keywords:
          - private/cancel_block_rfq
          - block_rfq_id
          - creation_timestamp
          - expiration_timestamp
          - role
          - state
          - taker_rating
          - makers
          - amount
          - min_trade_amount
          - asks
          - bids
          - legs
          - hedge
          - combo_id
          - label
          - app_name
          - mark_price
          - disclosed
          - taker
          - index_prices
          - included_in_taker_rating
          - trades
          - trade_trigger
          - trade_allocations
          - price
          - last_update_timestamp
          - execution_instruction
          - expires_at
          - ratio
          - instrument_name
          - direction
          - maker
          - hedge_amount
          - cancel_reason
          - user_id
          - client_info
          - client_id
          - client_link_id
          - name
        href: /api-reference/block-rfq/private-cancel_block_rfq
  /private/accept_block_rfq:
    get:
      parameters:
      - name: block_rfq_id
        required: true
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      - in: query
        name: price
        required: true
        schema:
          type: number
        description: Maximum acceptable price for execution
      - in: query
        name: amount
        required: true
        schema:
          $ref: '#/components/schemas/amount'
        description: This value multiplied by the ratio of a leg gives trade size on that leg.
      - in: query
        name: direction
        required: true
        schema:
          $ref: '#/components/schemas/direction'
        description: Direction of the trade from the taker perspective
      - in: query
        name: hedge
        required: false
        schema:
          type: string
          description: 'JSON string containing: instrument_name, direction, price, amount'
        description: Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ
      - in: query
        name: legs
        required: true
        schema:
          type: array
          items:
            type: object
            properties:
              instrument_name:
                $ref: '#/components/schemas/instrument_name'
                description: Instrument name
              direction:
                $ref: '#/components/schemas/direction'
                description: Direction of selected leg. Must match the direction of the corresponding leg in the Block RFQ
              ratio:
                type: integer
                description: Ratio of amount between legs
        description: List of legs used to trade Block RFQ
        style: form
        explode: true
      - name: time_in_force
        in: query
        required: true
        schema:
          type: string
          enum:
          - fill_or_kill
          - good_til_cancelled
          example: fill_or_kill
        description: Specifies how long the order should remain active
      responses:
        '200':
          $ref: '#/components/responses/PrivateAcceptBlockRfqResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/accept_block_rfq
                  params:
                    block_rfq_id: 1
                    legs:
                    - instrument_name: BTC-8NOV24-70000-C
                      ratio: 1
                      direction: buy
                    - instrument_name: BTC-8NOV24-72000-C
                      ratio: 1
                      direction: sell
                    price: 0.01
                    direction: buy
                    amount: 100
                    time_in_force: fill_or_kill
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: '**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](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information, or [private/cancel_block_rfq](https://docs.deribit.com/api-reference/block-rfq/private-cancel_block_rfq) to cancel a Block RFQ.


        **πŸ“– Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read_write`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Faccept_block_rfq)


        '
      x-mint:
        metadata:
          title: private/accept_block_rfq
          og:title: private/accept_block_rfq
          keywords:
          - private/accept_block_rfq
          - block_rfq_id
          - price
          - amount
          - direction
          - hedge
          - legs
          - time_in_force
          - trade_trigger
          - block_trades
          - state
          - timestamp
          - trades
          - app_name
          - broker_code
          - broker_name
          - trade_id
          - trade_seq
          - instrument_name
          - order_type
          - advanced
          - order_id
          - matching_id
          - tick_direction
          - index_price
          - contracts
          - iv
          - underlying_price
          - liquidation
          - liquidity
          - fee
          - fee_currency
          - label
          - block_trade_id
          - block_rfq_quote_id
          - reduce_only
          - post_only
          - mmp
          - risk_reducing
          - api
          - profit_loss
          - mark_price
          - combo_id
          - combo_trade_id
          - quote_set_id
          - quote_id
          - trade_allocations
          - user_id
          - client_info
          - client_id
          - client_link_id
          - name
        href: /api-reference/block-rfq/private-accept_block_rfq
  /private/cancel_block_rfq_trigger:
    get:
      parameters:
      - name: block_rfq_id
        required: true
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      responses:
        '200':
          $ref: '#/components/responses/PrivateCancelBlockRfqTriggerResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/cancel_block_rfq_trigger
                  params:
                    block_rfq_id: 123
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: '**Taker method**


        Allows Block RFQ taker to cancel an active trigger for a Block RFQ. The response includes the full Block RFQ object with the trade trigger state set to cancelled.


        Use [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information.


        **πŸ“– Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read_write`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_block_rfq_trigger)


        '
      x-mint:
        metadata:
          title: private/cancel_block_rfq_trigger
          og:title: private/cancel_block_rfq_trigger
          keywords:
          - private/cancel_block_rfq_trigger
          - block_rfq_id
          - creation_timestamp
          - expiration_timestamp
          - role
          - state
          - taker_rating
          - makers
          - amount
          - min_trade_amount
          - asks
          - bids
          - legs
          - hedge
          - combo_id
          - label
          - app_name
          - mark_price
          - disclosed
          - taker
          - index_prices
          - included_in_taker_rating
          - trades
          - trade_trigger
          - trade_allocations
          - price
          - last_update_timestamp
          - execution_instruction
          - expires_at
          - ratio
          - instrument_name
          - direction
          - maker
          - hedge_amount
          - cancel_reason
          - user_id
          - client_info
          - client_id
          - client_link_id
          - name
        href: /api-reference/block-rfq/private-cancel_block_rfq_trigger
  /private/get_block_rfq_quotes:
    get:
      parameters:
      - name: block_rfq_id
        required: false
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      - name: label
        in: query
        schema:
          type: string
        required: false
        description: User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ
      - name: block_rfq_quote_id
        required: false
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ quote
      responses:
        '200':
          $ref: '#/components/responses/PrivateGetBlockRfqQuotesResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/get_block_rfq_quotes
                  params:
                    block_rfq_id: 1
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: '**Maker method**


        Retrieves all open quotes for Block RFQs. When a `block_rfq_id` is specified, only the open quotes for that particular Block RFQ will be returned. When a `label` is specified, all quotes with this label are returned. `block_rfq_quote_id` returns one specific quote.


        Use [private/add_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-add_block_rfq_quote) to add quotes, or [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information.


        **πŸ“– Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_rfq_quotes)


        '
      x-mint:
        metadata:
          title: private/get_block_rfq_quotes
          og:title: private/get_block_rfq_quotes
          keywords:
          - private/get_block_rfq_quotes
          - block_rfq_id
          - label
          - block_rfq_quote_id
          - creation_timestamp
          - last_update_timestamp
          - quote_state
          - execution_instruction
          - price
          - amount
          - direction
          - filled_amount
          - legs
          - hedge
          - replaced
          - app_name
          - quote_state_reason
          - ratio
          - instrument_name
        href: /api-reference/block-rfq/private-get_block_rfq_quotes
  /private/add_block_rfq_quote:
    get:
      parameters:
      - name: label
        in: query
        schema:
          type: string
        required: false
        description: User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ
      - name: block_rfq_id
        required: true
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      - in: query
        name: amount
        required: true
        schema:
          $ref: '#/components/schemas/amount'
        description: This value multiplied by the ratio of a leg gives trade size on that leg.
      - in: query
        name: direction
        required: true
        schema:
          $ref: '#/components/schemas/direction'
        description: Direction of trade from the maker perspective
      - in: query
        name: legs
        required: true
        schema:
          type: array
          items:
            type: object
            properties:
              instrument_name:
                $ref: '#/components/schemas/instrument_name'
                description: Instrument name
              price:
                type: number
                description: Price for trade
              ratio:
                type: integer
                description: Ratio of amount between legs
              direction:
                $ref: '#/components/schemas/direction'
                description: Direction of selected leg. Must match the direction of the corresponding leg in the Block RFQ
        description: List of legs used for Block RFQ quote
        style: form
        explode: true
      - in: query
        name: hedge
        required: false
        schema:
          type: string
          description: 'JSON string containing: instrument_name, direction, price, amount'
        description: Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ
      - name: execution_instruction
        required: false
        in: query
        schema:
          type: string
          enum:
          - all_or_none
          - any_part_of
        description: <p>Execution instruction of the quote. Default - `any_part_of`</p> <ul> <li>`"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.</li> <li>`"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.</li> </ul>
      - in: query
        name: price
        required: false
        schema:
          type: number
        description: Aggregated price used for quoting future spreads.
      - name: expires_at
        required: false
        in: query
        schema:
          type: integer
          example: 1745312540321
        description: The timestamp when the quote expires (milliseconds since the Unix epoch)
      responses:
        '200':
          $ref: '#/components/responses/PrivateAddBlockRfqQuoteResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/add_block_rfq_quote
                  params:
                    label: example_quote
                    block_rfq_id: 3
                    amount: 10000
                    direction: buy
                    legs:
                    - instrument_name: BTC-15NOV24
                      price: 69600
                      ratio: '1'
                      direction: buy
                    hedge:
                      amount: 10
                      direction: buy
                      price: 70000
                      instrument_name: BTC-PERPETUAL
                    execution_instruction: any_part_of
                    expires_at: 1745312540321
                description: JSON-RPC Request Example
        description: JSON-RPC request body
      description: '**Maker method**


        Adds a quote to an existing Block RFQ. To calculate individual leg prices, use [private/get_leg_prices](https://docs.deribit.com/api-reference/combo-books/private-get_leg_prices).


        Use [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information, or [private/edit_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-edit_block_rfq_quote) to modify an existing quote.


        **πŸ“– Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)


        **Scope:** `block_rfq:read_write`


        [Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fadd_block_rfq_quote)


        '
      x-mint:
        metadata:
          title: private/add_block_rfq_quote
          og:title: private/add_block_rfq_quote
          keywords:
          - private/add_block_rfq_quote
          - label
          - block_rfq_id
          - amount
          - direction
          - legs
          - hedge
          - execution_instruction
          - price
          - expires_at
          - creation_timestamp
          - last_update_timestamp
          - block_rfq_quote_id
          - quote_state
          - filled_amount
          - replaced
          - app_name
          - quote_state_reason
          - ratio
          - instrument_name
        href: /api-reference/block-rfq/private-add_block_rfq_quote
  /private/edit_block_rfq_quote:
    get:
      parameters:
      - in: query
        name: legs
        required: true
        schema:
          type: array
          items:
            type: object
            properties:
              instrument_name:
                $ref: '#/components/schemas/instrument_name'
                description: Instrument name
              price:
                type: number
                description: Price for trade
              ratio:
                type: integer
                description: Ratio of amount between legs
              direction:
                $ref: '#/components/schemas/direction'
                description: Direction of selected leg. Must match the direction of the corresponding leg in the Block RFQ
        description: List of legs used for Block RFQ quote
        style: form
        explode: true
      - in: query
        name: amount
        required: true
        schema:
          $ref: '#/components/schemas/amount'
        description: This value multiplied by the ratio of a leg gives trade size on that leg.
      - name: block_rfq_quote_id
        required: false
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ quote
      - name: label
        in: query
        schema:
          type: string
        required: false
        description: User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ
      - in: query
        name: hedge
        required: false
        schema:
          type: string
          description: 'JSON string containing: instrument_name, direction, price, amount'
        description: Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ
      - name: block_rfq_id
        required: false
        in: query
        schema:
          type: integer
        description: ID of the Block RFQ
      - in: query
        name: price
        required: false
        schema:
          type: number
        description: Aggregated price used for quoting future spreads.
      responses:
        '200':
          $ref: '#/components/responses/PrivateEditBlockRfqQuoteResponse'
      tags:
      - Block RFQ
      requestBody:
        content:
          application/json:
            examples:
              request:
                value:
                  jsonrpc: '2.0'
                  id: 1
                  method: private/edit_block_rfq_quote
                  params:
                    label: example_quote
                    block_rfq_id: 3
                    amount: 20000
                    direction: buy
                    legs:
                    - instrument_name: BTC-15NOV24
                      price: 74600
                      ratio: '1'
                      direction: buy
                    hedge:
                      amount: 10
                      direction: buy
                      price: 70000
                 

# --- truncated at 32 KB (93 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/deribit/refs/heads/main/openapi/deribit-block-rfq-api-openapi.yml