Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → Opt Inor Outof Multi Asset Collateral

AI-generated

Summary

Opt in or out of multi-asset collateral for a portfolio on Coinbase.

Inputs

  • requestOptions (required) — Options for the request, including batching, SSL handling, proxy configuration, and timeout settings.
  • requestOptions.batching — Configuration for batching requests, such as the number of items per batch and the interval between batches.
  • requestOptions.batching.batchSize — Number of items to process in each batch, -1 to disable batching, 0 treated as 1.
  • requestOptions.batching.batchInterval — Interval in milliseconds between each batch of requests, 0 to disable.
  • requestOptions.allowUnauthorizedCerts — True to ignore SSL certificate validation issues.
  • requestOptions.proxy — HTTP proxy to use for the requests.
  • requestOptions.timeout — Timeout in milliseconds for waiting for response headers before aborting the request.

Output shape

a success or failure response based on the operation

The operation may return a confirmation message about the opt-in or opt-out status.

Examples

Example 1: Opting-in to multi-asset collateral with batching enabled.

Set batchSize to 10 and batchInterval to 1000 ms, allowing up to 10 items per second.

Example 2: Opting-out of multi-asset collateral without batching and allowing unauthorized SSL certificates.

Set allowUnauthorizedCerts to true and leave batching disabled.

Discussion