marketdata_candles

Pack: marketdata-app · Endpoint: https://gateway.pipeworx.io/marketdata-app/mcp

Get historical OHLCV candles for a stock symbol at a given resolution (“D” daily, “H” hourly, “5” for 5-minute, etc.). Provide a from/to date range. Example: marketdata_candles({ resolution: “D”, symbol: “AAPL”, from: “2026-01-01”, to: “2026-06-30”, _apiKey: “your-key” })

Parameters

NameTypeRequiredDescription
resolutionstringnoCandle resolution: “D” (daily), “W” (weekly), “M” (monthly), “H” (hourly), or a minute count like “1”, “5”, “15”. Defaults to “D”.
symbolstringyesStock ticker symbol, e.g. “AAPL”.
fromstringnoStart date (YYYY-MM-DD), inclusive. Optional.
tostringnoEnd date (YYYY-MM-DD), inclusive. Optional.
countbacknumbernoReturn this many candles counting back from to (mutually exclusive with from). Optional.
_apiKeystringyesMarket Data App API token. Get one at ${SIGNUP_URL}

Example call

Arguments

{
  "symbol": "AAPL",
  "resolution": "D",
  "from": "2026-01-01",
  "to": "2026-06-30",
  "_apiKey": "your-marketdata-app-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/marketdata-app/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"marketdata_candles","arguments":{"symbol":"AAPL","resolution":"D","from":"2026-01-01","to":"2026-06-30","_apiKey":"your-marketdata-app-api-key"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('marketdata_candles', {
  "symbol": "AAPL",
  "resolution": "D",
  "from": "2026-01-01",
  "to": "2026-06-30",
  "_apiKey": "your-marketdata-app-api-key"
});

More examples

{
  "symbol": "SPY",
  "resolution": "5",
  "countback": 50,
  "_apiKey": "your-marketdata-app-api-key"
}

Connect

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

{
  "mcpServers": {
    "marketdata-app": {
      "url": "https://gateway.pipeworx.io/marketdata-app/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 24, 2026