Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Orders → Create Order

AI-generated

Summary

Create an order in the Coinbase CDP by sending a request with specified options.

Inputs

  • requestOptions (required) — Options for the request including batching configurations, SSL certificate handling, proxy settings, and timeout settings.

Output shape

a response object detailing the order creation result.

The 'requestOptions' parameter supports batching to optimize request handling, and individual settings allow adjusting SSL validation and request timing.

Examples

Example 1: Create a single order without batching.

Set the 'requestOptions' with 'batchSize' as -1 and 'batchInterval' as 0.

Example 2: Create multiple orders with batching enabled.

Set 'batchSize' to a positive number (e.g., 50) and define 'batchInterval' in milliseconds (e.g., 1000).

Discussion