Coinbase CDP icon

Coinbase CDP

Interact with Coinbase CDP Advanced Trade API

Products → Get Market Trades

AI-generated

Summary

Retrieve market trades for specified products from the Coinbase CDP API.

Inputs

  • limit — Specify the maximum number of trades to retrieve.
  • requestOptions — Collection of options for the request, including batching, SSL ignoring, proxy, and timeout.

Output shape

a list of market trades

The output includes details of the trades retrieved. The 'limit' parameter controls how many trades are returned, while the 'requestOptions' allow for configuration such as batching and timeouts.

Examples

Example 1: Get the latest market trades with a limit of 10.

Set 'limit' to '10' to control the number of trades returned.

Discussion