Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Public → Get Server Time

AI-generated

Summary

Fetches the current server time from the Coinbase API.

Inputs

  • requestOptions — Collection of options for the request, such as batching, SSL certificate handling, proxy configuration, and timeout settings.
  • requestOptions.batching — Settings for batching requests.
  • requestOptions.batching.batchSize — Number of items per batch to throttle requests (default: 50). Set to -1 to disable batching.
  • requestOptions.batching.batchInterval — Interval in milliseconds between batches (default: 1000). Set to 0 to disable.
  • requestOptions.allowUnauthorizedCerts — Accepts responses even if SSL certificate validation fails (default: false).
  • requestOptions.proxy — HTTP proxy for requests (e.g., http://username:password@myproxy:3128).
  • requestOptions.timeout — Maximum wait time in milliseconds for the server to respond before aborting the request (default: 10000).

Output shape

a single record containing the server time

Response includes the current server time from the Coinbase API. Make sure to handle any potential errors due to network issues or invalid configurations.

Examples

Example 1: User wants to check the server time before scheduling further transactions.

Set batchSize to 10 to throttle requests and ensure timely responses.

Discussion