binance_klines

Pack: binance-spot · 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/binance_klines for the schema, then POST the same URL with its arguments for the data.

Binance Spot OHLCV candlesticks for a symbol such as BTCEUR or BTCUSDT. Returns open time, OHLC, base volume, close time, quote-asset volume, trade count, and taker-buy volumes for each bar.

Parameters

NameTypeRequiredDescription
symbolstringyesBinance spot symbol, for example BTCEUR or BTCUSDT.
intervalstringyesCandle interval, for example 1m, 1h, 1d.
limitnumbernoNumber of bars, from 1 to 1000; defaults to 12.
startTimenumbernoOptional start time in Unix milliseconds.
endTimenumbernoOptional end time in Unix milliseconds.

Example call

Arguments

{
  "symbol": "BTCEUR",
  "interval": "1h",
  "limit": 12
}

curl

curl -X POST https://gateway.pipeworx.io/binance-spot/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"binance_klines","arguments":{"symbol":"BTCEUR","interval":"1h","limit":12}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('binance_klines', {
  "symbol": "BTCEUR",
  "interval": "1h",
  "limit": 12
});

Response shape

FieldTypeDescription
foundboolean
exchangestring
symbolstring
intervalstring
countnumber
klinesarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "found": {
      "type": "boolean"
    },
    "exchange": {
      "type": "string"
    },
    "symbol": {
      "type": "string"
    },
    "interval": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "klines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "open_time": {
            "type": "string"
          },
          "open": {
            "type": "number"
          },
          "high": {
            "type": "number"
          },
          "low": {
            "type": "number"
          },
          "close": {
            "type": "number"
          },
          "volume": {
            "type": "number"
          },
          "close_time": {
            "type": "string"
          },
          "quote_asset_volume": {
            "type": "number"
          },
          "trades": {
            "type": "number"
          },
          "taker_buy_base_volume": {
            "type": "number"
          },
          "taker_buy_quote_volume": {
            "type": "number"
          },
          "ignored": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}

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 binance-spot pack
{
  "mcpServers": {
    "binance-spot": {
      "url": "https://gateway.pipeworx.io/binance-spot/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build December 6, 2026