Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Portfolio → Cancel Pending Futures Sweep

AI-generated

Summary

Cancel pending futures sweep requests in a portfolio.

Inputs

  • requestOptions — Options for customizing the request, including batching settings and connection options.
  • requestOptions.batching — Settings for batching requests, including batch size and interval.
  • requestOptions.batching.batch.batchSize — Number of items to process per batch. A value of -1 disables batching.
  • requestOptions.batching.batch.batchInterval — Delay in milliseconds between batches of requests. A value of 0 disables the interval.
  • requestOptions.allowUnauthorizedCerts — Whether to ignore SSL certificate validation errors.
  • requestOptions.proxy — HTTP proxy settings for the request.
  • requestOptions.timeout — Maximum time in milliseconds to wait for a server response before aborting the request.

Output shape

no body — success/failure only

Successful cancellation will return no content; errors will be indicated by error messages.

Examples

Example 1: Cancel a specific pending sweep in the portfolio successfully while respecting batch size.

Set batchSize to 10 and batchInterval to 2000ms.

Example 2: Cancel sweeps while allowing for SSL issues and using a proxy connection.

Set allowUnauthorizedCerts to true and provide a proxy URL.

Discussion