ohlc

Pack: bitstamp · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/ohlc for the schema, then POST the same URL with its arguments for the data.

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
dataobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "pair": {
          "type": "string"
        },
        "ohlc": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "timestamp": {
                "type": "string"
              },
              "open": {
                "type": "string"
              },
              "high": {
                "type": "string"
              },
              "low": {
                "type": "string"
              },
              "close": {
                "type": "string"
              },
              "volume": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the bitstamp pack
{
  "mcpServers": {
    "bitstamp": {
      "url": "https://gateway.pipeworx.io/bitstamp/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026