Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → List Futures Positions

AI-generated

Summary

List futures positions associated with a user's portfolio on Coinbase CDP.

Inputs

  • requestOptions (required) — Options to customize the request, including batching, SSL certificate validation, proxy settings, and timeout.
  • batching — Options to throttle requests with batch size and interval.
  • allowUnauthorizedCerts — Whether to accept responses with SSL certificate validation issues.
  • proxy — HTTP proxy settings, including optional authentication.
  • timeout — Time in milliseconds to wait before aborting the request if no response received.

Output shape

a list of futures positions

Batching can manage the number of positions retrieved in a single request; defaults are provided for batch size and interval.

Examples

Example 1: Retrieve futures positions with a batch size of 50 and a 1-second interval between requests.

Set batchSize to 50, batchInterval to 1000, and enable proxy settings as necessary.

Discussion