Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → Get Futures Position

AI-generated

Summary

Retrieve the futures position for a specified product in a Coinbase portfolio.

Inputs

  • product_id (required) — The ID of the product for which to get the futures position.
  • requestOptions — Collection of additional request options such as batching, SSL validation, proxy, and timeout settings.

Output shape

a single futures position record

Returns details of the specified futures position. If batching is used, configure items per batch and batch interval.

Examples

Example 1: Retrieving the futures position for a product with ID 'BTC-USD'.

Set 'product_id' to 'BTC-USD'. Optionally set 'requestOptions' for batching and timeout.

Discussion