Transfers & Withdrawals

private/transfer_positions

Changed on

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.

post/private/transfer_positions

Request

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

Request body

TransferPositionsRequest required

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.

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.

wallet, string required

20-byte Ethereum address as a 0x-prefixed lowercase hex string.

Response

Success

TransferPositionsResponse required

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
taker_quote, Quote required

Changes

    • info

      the endpoint scheme security DeriveWallet AND DeriveTimestamp AND DeriveSignature was added to the API

    • info

      added the media type application/json for the response with the status