GET
/
api
/
v3
/
brokerage
/
products
/
{product_id}
/
ticker
curl --request GET \
  --url https://api.coinbase.com/api/v3/brokerage/products/{product_id}/ticker
{
  "trades": [
    {
      "trade_id": "34b080bf-fcfd-445a-832b-46b5ddc65601",
      "product_id": "BTC-USD",
      "price": "140.91",
      "size": "4",
      "time": "2021-05-31T09:59:59.000Z",
      "side": "<any>",
      "exchange": "<string>"
    }
  ],
  "best_bid": "291.13",
  "best_ask": "292.40"
}

Path Parameters

product_id
string
required

The trading pair (e.g. 'BTC-USD').

Query Parameters

limit
integer
required

The number of trades to be returned.

start
string

The UNIX timestamp indicating the start of the time interval.

end
string

The UNIX timestamp indicating the end of the time interval.

Response

200
application/json

A successful response.

The response is of type object.