Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → Get Perpetuals Position

AI-generated

Summary

Get the perpetuals position for a specified portfolio on Coinbase.

Inputs

  • portfolio_uuid (required) — The UUID of the portfolio.
  • symbol (required) — The trading symbol, such as BTC-USD.
  • requestOptions — Additional options for the request, including batching, SSL settings, proxy, and timeout.

Output shape

a single record containing the perpetuals position details for the specified portfolio and symbol.

The requestOptions can modify the behavior of the request, including batching the requests and adjusting timeouts.

Examples

Example 1: Get the perpetuals position of a specific portfolio

Set the portfolio_uuid and symbol; optionally configure requestOptions for batching and timeouts.

Discussion