candles

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

Bitfinex crypto OHLC candles for a crypto pair. Timeframes 1m through 1M. Returns timestamped open/high/low/close + volume. Use for charting, technical analysis, backtesting on Bitfinex.

Parameters

NameTypeRequiredDescription
timeframestringyes
symbolstringyes
sectionstringyes
limitnumberno
startnumberno
endnumberno
sortnumberno

Example call

Arguments

{
  "timeframe": "1m",
  "symbol": "tBTCUSD",
  "section": "last",
  "limit": 100
}

curl

curl -X POST https://gateway.pipeworx.io/bitfinex/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"candles","arguments":{"timeframe":"1m","symbol":"tBTCUSD","section":"last","limit":100}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('candles', {
  "timeframe": "1m",
  "symbol": "tBTCUSD",
  "section": "last",
  "limit": 100
});

More examples

{
  "timeframe": "1D",
  "symbol": "tETHUSD",
  "section": "hist",
  "start": 1640995200000,
  "end": 1641081600000
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarray
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "array",
        "description": "OHLC candle with timestamp, open, high, low, close, volume"
      }
    },
    "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": {
    "bitfinex": {
      "url": "https://gateway.pipeworx.io/bitfinex/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 8, 2026