Subaccounts

private/get_positions

Returns the subaccount ID and the list of its active positions, including size, mark price, average price, unrealized and realized PnL, and Greeks where applicable, valued against live feed data at request time. A lighter alternative to get_subaccount when only positions are needed.

post/private/get_positions

Request

  • Base URL: https://api.derive.xyz/v3
  • URL: https://api.derive.xyz/v3/private/get_positions
  • Auth: none declared

Request body

subaccount_idinteger required

Response

Success

subaccount_idinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.