product_candles

Pack: coinbase-exchange · Endpoint: https://gateway.pipeworx.io/coinbase-exchange/mcp

Coinbase Exchange OHLC candles for a crypto pair. Granularity 1m, 5m, 15m, 1h, 6h, 1d. Use for charting and backtesting on Coinbase-listed pairs.

Parameters

NameTypeRequiredDescription
product_idstringyes
granularitynumberno
startstringno
endstringno

Example call

Arguments

{
  "product_id": "BTC-USD",
  "granularity": 3600
}

curl

curl -X POST https://gateway.pipeworx.io/coinbase-exchange/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"product_candles","arguments":{"product_id":"BTC-USD","granularity":3600}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('product_candles', {
  "product_id": "BTC-USD",
  "granularity": 3600
});

More examples

{
  "product_id": "ETH-USD",
  "granularity": 86400,
  "start": "2024-01-01T00:00:00Z",
  "end": "2024-01-31T23:59:59Z"
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarrayOHLC candles
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "array",
        "description": "[time, low, high, open, close, volume]"
      },
      "description": "OHLC candles"
    },
    "count": {
      "type": "integer",
      "description": "Number of items returned."
    }
  },
  "required": [
    "items",
    "count"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "coinbase-exchange": {
      "url": "https://gateway.pipeworx.io/coinbase-exchange/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 8, 2026