---
title: "private/verify_block_trade"
method: POST
path: "/private/verify_block_trade"
tags: ["RFQ"]
---

# private/verify_block_trade

`POST /private/verify_block_trade`

## Request

- Base URL: `https://api.derive.xyz/v3`
- URL: `https://api.derive.xyz/v3/private/verify_block_trade`
- Auth: API key in header `X-DeriveWallet` and API key in header `X-DeriveTimestamp` and API key in header `X-DeriveSignature`

Checks one signed side of a block trade for the caller's subaccount, as private/execute_block_trade would check it now: its signature, nonce and signature lifetime. Takes the signed side in the private/execute_block_trade shape and its role, maker or taker. Returns the total fee the side would pay, its initial margin before and after the trade, expires_at_sec, the last second at which the side can execute, and within_price_band, which is whether the total cost is inside the currency's RFQ price band for both sides, or null if the currency has no band. Also returns price_band_min_total_cost and price_band_max_total_cost, the lowest and highest total cost at which this side is inside the band. Fails with invalid_amount (11012) if a leg is smaller than 100 times its instrument's minimum_amount. A side without enough margin returns is_valid false and the reason, not an error. The side stays usable. Requires the block_trade off-chain scope.

## Request body

- VerifyBlockTradeRequest: A signed side, as `private/execute_block_trade` takes it, and its role.
  - `client` string
  - `direction` 'buy' | 'sell', required
  - `extra_fee` string, decimal: Broker fee for this side, in USD, paid to the owner of `referral_code`. It is not signed. The side's `max_fee` caps the total fee.
  - `label` string
  - `legs` PricedLegParamsAndResponse[], required
    - `amount` string, decimal, required: Non-negative decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
    - `direction` 'buy' | 'sell', required
    - `instrument_name` string, required
    - `price` string, decimal, required: Non-negative decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
  - `max_fee` string, decimal, required: Highest total fee this side pays, in USD, including `extra_fee`.
  - `nonce` string, required
  - `referral_code` string
  - `role` 'maker' | 'taker', required: The payload this side signed: `maker` (a quote) or `taker` (an execution).
  - `signature` string, required
  - `signature_expiry_sec` integer, required
  - `signer` string, required: 20-byte Ethereum address as a 0x-prefixed lowercase hex string.
  - `subaccount_id` integer, required

## Response `200`

Success

- BlockTradeSideCheckResponse: Result for `private/simulate_block_trade` and `private/verify_block_trade`: one side's fee and margin if it executed now.
  - `estimated_fee` string, decimal, required: The side's total fee, `extra_fee` included.
  - `expires_at_sec` integer, nullable: The last second at which the signed side can execute. Null for an unsigned side.
  - `invalid_reason` string, nullable
  - `is_valid` boolean, required: False if the side does not have enough margin for its trade and fees, or if the trade takes the subaccount over its maximum asset count.
  - `post_initial_margin` string, decimal, required: Decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
  - `pre_initial_margin` string, decimal, required: Decimal string of the human value (e.g. `"1.5"`), up to 12 fractional digits; a string or JSON number is accepted
  - `price_band_max_total_cost` string, decimal, nullable, required: The highest total cost at which this side is within the RFQ price band, as a decimal string. Null if the currency has no band.
  - `price_band_min_total_cost` string, decimal, nullable, required: The lowest total cost at which this side is within the RFQ price band, as a decimal string. A negative cost means the side receives. Null if the currency has no band.
  - `within_price_band` boolean, nullable: Whether both sides are within the currency's RFQ price band. Null if it has no band.

## Other responses

- `default`: JSON-RPC error (see Error Codes)

## Changes

- **2026-11-13** `cedbb66f9296`: 2 info
  - added the required property `price_band_max_total_cost` to the response with the `200` status
  - added the required property `price_band_min_total_cost` to the response with the `200` status
- **2026-11-12** `1daf38a69a7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/verify_block_trade/post.md)

---

[API](https://skmtc.dev/lyra/apis/derive-v3-api.md) - [All operations](https://skmtc.dev/lyra/apis/derive-v3-api/llms.txt) - [OpenAPI document](https://skmtc.dev/lyra/apis/derive-v3-api/revisions/415f8a73b10c?raw)
