Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → Get Portfolios Balances

AI-generated

Summary

Retrieve the balances of a specified portfolio from Coinbase.

Inputs

  • portfolio_uuid (required) — The UUID of the portfolio to fetch balances for.
  • requestOptions — Collection of request options to customize the API call, including batching, handling SSL issues, proxy settings, and timeout.

Output shape

a list of portfolio balances

The output will provide the balances associated with the specified portfolio UUID. If batching is configured, the results will reflect the requested batch sizes and intervals.

Examples

Example 1: Fetch the balances of a portfolio identified by its UUID, with default request settings.

Set 'portfolio_uuid' to a valid UUID of an existing portfolio.

Example 2: Fetch balances with customized request options to handle large datasets.

Set 'portfolio_uuid' and configure 'batching' settings accordingly.

Discussion