Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → List Portfolios

AI-generated

Summary

List portfolios from a Coinbase account.

Inputs

  • requestOptions (required) — Options for customizing the portfolio list request.
  • requestOptions.batching — Configure batching options for throttling requests.
  • requestOptions.batching.batchSize — Number of items to process in each batch; -1 to disable batching.
  • requestOptions.batching.batchInterval — Milliseconds to wait between batches; 0 to disable.
  • requestOptions.allowUnauthorizedCerts — Allow requests to proceed even if SSL validation fails.
  • requestOptions.proxy — Proxy URL for the request, if needed.
  • requestOptions.timeout — Maximum wait time for server response before aborting.

Output shape

a list of portfolios

If batching is enabled, the response will reflect the requested batch size.

Examples

Example 1: Fetch the first 100 portfolios in batches of 50 with a 1 second interval between batches.

Set batch size to 50 and batch interval to 1000ms.

Discussion