---
title: "private/transfer_positions"
method: POST
path: "/private/transfer_positions"
tags: ["Transfers & Withdrawals"]
---

# private/transfer_positions

`POST /private/transfer_positions`

## Request

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

Atomically transfers one or more derivative positions between a maker and a taker subaccount using matched, signed transfer quotes. Each side supplies its subaccount, signer, nonce, signature, expiry, max fee, direction, and priced legs (instrument, amount, price); the two quotes must mirror each other. Requires a session key with transfer permission and returns the resulting operation details.

## Request body

- TransferPositionsRequest: Params for `private/transfer_positions`.
  - `maker_params` SignedTransferQuoteRequest, required: Action info that needs to be signed by quoter or RFQ executor for a transfer. The quoter signs the legs hash + max fee; the executor signs the same legs hash + their own max fee.
    - `direction` 'buy' | 'sell', required
    - `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: Maximum fee the signer authorises, in USD, as a decimal string (e.g. `"1.5"`) or a JSON number.
    - `nonce` string, required
    - `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
  - `taker_params` SignedTransferQuoteRequest, required: Action info that needs to be signed by quoter or RFQ executor for a transfer. The quoter signs the legs hash + max fee; the executor signs the same legs hash + their own max fee.
    - `direction` 'buy' | 'sell', required
    - `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: Maximum fee the signer authorises, in USD, as a decimal string (e.g. `"1.5"`) or a JSON number.
    - `nonce` string, required
    - `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
  - `wallet` string, required: 20-byte Ethereum address as a 0x-prefixed lowercase hex string.

## Response `200`

Success

- TransferPositionsResponse: Result for `private/transfer_positions`. Carries the synthesized maker and taker quote payloads so clients see a response shape parallel to `private/execute_quote`.
  - `maker_quote` Quote, required
    - `batch_status` 'Batching' | 'Executing' | 'Da' | 'Proving' | 'Settling' | 'Settled' | 'BatchingError' | 'ExecutingError' | 'DaError' | 'ProvingError' | 'SettlingError' | 'SettledError', nullable: Batch lifecycle status — the single source of lifecycle truth for every operation in the batch (individual ops carry no status of their own). Each stage has a healthy variant and a corresponding `...Error` variant meaning that stage failed. Serialized as the variant name (string) in API responses.
    - `cancel_reason` '' | 'user_request' | 'insufficient_margin' | 'signed_max_fee_too_low' | 'mmp_trigger' | 'cancel_on_disconnect' | 'session_key_deregistered' | 'subaccount_withdrawn' | 'rfq_no_longer_open' | 'compliance' | 'validation_failed', required
    - `creation_timestamp` integer, required
    - `direction` 'buy' | 'sell', required
    - `extra_fee` 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
    - `fee` 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
    - `fill_pct` 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
    - `is_transfer` boolean, required
    - `label` string, required
    - `last_update_timestamp` integer, required
    - `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
    - `legs_hash` string, required
    - `liquidity_role` 'maker' | 'taker', required
    - `max_fee` 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
    - `mmp` boolean, required
    - `nonce` string, required
    - `quote_id` string, uuid, required: UUID v4 string
    - `rfq_id` string, uuid, required: UUID v4 string
    - `signature_expiry_sec` integer, required
    - `status` 'open' | 'filled' | 'cancelled' | 'expired', required
    - `subaccount_id` integer, required
    - `tx_hash` string, nullable: Blockchain transaction hash (only for executed quotes).
  - `taker_quote` Quote, required
    - `batch_status` 'Batching' | 'Executing' | 'Da' | 'Proving' | 'Settling' | 'Settled' | 'BatchingError' | 'ExecutingError' | 'DaError' | 'ProvingError' | 'SettlingError' | 'SettledError', nullable: Batch lifecycle status — the single source of lifecycle truth for every operation in the batch (individual ops carry no status of their own). Each stage has a healthy variant and a corresponding `...Error` variant meaning that stage failed. Serialized as the variant name (string) in API responses.
    - `cancel_reason` '' | 'user_request' | 'insufficient_margin' | 'signed_max_fee_too_low' | 'mmp_trigger' | 'cancel_on_disconnect' | 'session_key_deregistered' | 'subaccount_withdrawn' | 'rfq_no_longer_open' | 'compliance' | 'validation_failed', required
    - `creation_timestamp` integer, required
    - `direction` 'buy' | 'sell', required
    - `extra_fee` 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
    - `fee` 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
    - `fill_pct` 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
    - `is_transfer` boolean, required
    - `label` string, required
    - `last_update_timestamp` integer, required
    - `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
    - `legs_hash` string, required
    - `liquidity_role` 'maker' | 'taker', required
    - `max_fee` 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
    - `mmp` boolean, required
    - `nonce` string, required
    - `quote_id` string, uuid, required: UUID v4 string
    - `rfq_id` string, uuid, required: UUID v4 string
    - `signature_expiry_sec` integer, required
    - `status` 'open' | 'filled' | 'cancelled' | 'expired', required
    - `subaccount_id` integer, required
    - `tx_hash` string, nullable: Blockchain transaction hash (only for executed quotes).

## Other responses

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

## Changes

- **2026-10-20** `0c500202be49`: 2 info
  - the endpoint scheme security `DeriveWallet AND DeriveTimestamp AND DeriveSignature` was added to the API
  - added the media type `application/json` for the response with the status `default`

[Operation history](https://skmtc.dev/lyra/apis/derive-v3-api/changes/private/transfer_positions/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)
