Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Converts → New Request

AI-generated

Summary

Initiate a new conversion request with custom settings for handling requests.

Inputs

  • requestOptions (required) — Settings for the request, including options for batching, SSL certificate handling, proxy usage, and timeout.
  • requestOptions.batching.batchSize — Specify the number of items per batch to throttle requests. Set to -1 to disable batching.
  • requestOptions.batching.batchInterval — Define the interval in milliseconds between processed batches. Set to 0 to disable the interval.
  • requestOptions.allowUnauthorizedCerts — Allow the operation to accept responses even if SSL certificate validation fails.
  • requestOptions.proxy — HTTP proxy configuration, including authentication if necessary.
  • requestOptions.timeout — Set the maximum wait time (in milliseconds) for the server to respond before aborting the request.

Output shape

a confirmation or result of the conversion request

Optional fields may not be present in the response; ensure to handle potential errors properly.

Examples

Example 1: Batch convert cryptocurrency amounts with defined sizes and intervals.

requestOptions: { batching: { batchSize: 10, batchInterval: 2000 }, allowUnauthorizedCerts: true, proxy: 'http://proxy.example.com:3128', timeout: 5000 }

Discussion