stats: Get 24hr stats

API: coinbase.com:coinbase-pro-api
Endpoint: /products/{product_id}/stats
Response format: application/json
Auth: none
Method: GET
Last Status: 200
Latency: 146ms

Description

Returns 24-hour trading statistics including open, high, low, last price, and volume. Use this for price tickers, daily summaries, and quick market overview displays.

From spec: Get 24-hour statistics for a product including volume, high, low, and price change.

Usage Tips

- All prices are in the quote currency (e.g., USD for BTC-USD) - 'volume' is the 24-hour trading volume in base currency - 'volume_30day' provides longer-term activity metric - 'last' is the most recent trade price

Parameters (1)

product_id (string, path, required)

Product ID (e.g., BTC-USD)

Examples (1)

Get BTC-USD 24-hour statistics probe-gate

Demonstrates retrieving 24-hour trading statistics for a price ticker display showing open, high, low, last price, and volume.

curl 'https://api.exchange.coinbase.com/products/BTC-USD/stats'
import requests

resp = requests.get("https://api.exchange.coinbase.com/products/BTC-USD/stats")
data = resp.json()
import zingu_apis

api = zingu_apis.api("coinbase-pro")
result = api.fetch("products/{product_id}/stats")

for item in result:
    print(item)
const resp = await fetch("https://api.exchange.coinbase.com/products/BTC-USD/stats");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 17:25:00.713894 200 146ms
2026-04-16 00:30:59.320617 200 175ms
2026-04-15 03:35:11.066808 200 275ms
2026-04-14 03:05:00.650121 200 193ms
2026-04-12 12:40:58.437555 200 129ms
2026-04-10 04:16:53.980877 200 115ms
2026-04-09 03:46:23.423033 200 164ms
2026-04-08 06:51:31.344427 200 145ms
2026-04-07 01:31:44.349359 200 151ms
2026-04-05 19:38:47.040300 200 187ms