ohlc

Pack: bitstamp · Endpoint: https://gateway.pipeworx.io/bitstamp/mcp

Fetch OHLC candlestick data from Bitstamp for a currency pair; step sets candle duration in seconds, limit caps candle count, with optional Unix start/end range.

Parameters

NameTypeRequiredDescription
currency_pairstringyes
stepnumberyes
limitnumberyes
startnumberno
endnumberno
exclude_current_candlebooleanno

Example call

Arguments

{
  "currency_pair": "btcusd",
  "step": 3600,
  "limit": 100
}

curl

curl -X POST https://gateway.pipeworx.io/bitstamp/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"ohlc","arguments":{"currency_pair":"btcusd","step":3600,"limit":100}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('ohlc', {
  "currency_pair": "btcusd",
  "step": 3600,
  "limit": 100
});

More examples

{
  "currency_pair": "ethusd",
  "step": 300,
  "limit": 50,
  "start": 1640000000,
  "end": 1640100000
}

Response shape

FieldTypeDescription
pairstringCurrency pair
ohlcarrayOHLC candles
timestampstringUnix timestamp
Full JSON Schema
{
  "type": "object",
  "properties": {
    "pair": {
      "type": "string",
      "description": "Currency pair"
    },
    "ohlc": {
      "type": "array",
      "description": "OHLC candles",
      "items": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Candle [timestamp, open, high, low, close, volume]"
      }
    },
    "timestamp": {
      "type": "string",
      "description": "Unix timestamp"
    }
  }
}

Connect

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

{
  "mcpServers": {
    "bitstamp": {
      "url": "https://gateway.pipeworx.io/bitstamp/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026