historical_ohlc
Pack: coinpaprika · Endpoint: https://gateway.pipeworx.io/coinpaprika/mcp
Daily OHLC + volume + market cap for a coin. Defaults to the last 30 days when no date range is supplied. Free tier: up to 1 year back.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
coin_id | string | yes | coinpaprika coin ID (e.g. “btc-bitcoin”, “eth-ethereum”) |
start | string | no | YYYY-MM-DD or unix timestamp. Optional — defaults to 30 days ago. |
end | string | no | YYYY-MM-DD or unix timestamp (optional, defaults to now). |
limit | number | no | 1-365 daily candles (default 30). |
quote | string | no | usd | btc (default usd) |
Example call
Arguments
{
"coin_id": "btc-bitcoin"
}
curl
curl -X POST https://gateway.pipeworx.io/coinpaprika/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"historical_ohlc","arguments":{"coin_id":"btc-bitcoin"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('historical_ohlc', {
"coin_id": "btc-bitcoin"
});
More examples
{
"coin_id": "eth-ethereum",
"start": "2024-01-01",
"end": "2024-12-31",
"limit": 365,
"quote": "usd"
}
Response shape
Always returns: items, count
| Field | Type | Description |
|---|---|---|
items | array | Daily OHLC candles with volume and market cap |
count | integer | Number of items returned. |
Full JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"time_open": {
"type": "number",
"description": "Unix timestamp for period open"
},
"time_close": {
"type": "number",
"description": "Unix timestamp for period close"
},
"open": {
"type": "number",
"description": "Opening price"
},
"high": {
"type": "number",
"description": "Highest price in period"
},
"low": {
"type": "number",
"description": "Lowest price in period"
},
"close": {
"type": "number",
"description": "Closing price"
},
"volume": {
"type": "number",
"description": "Trading volume"
},
"market_cap": {
"type": "number",
"description": "Market cap at close"
}
}
},
"description": "Daily OHLC candles with volume and market cap"
},
"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": {
"coinpaprika": {
"url": "https://gateway.pipeworx.io/coinpaprika/mcp"
}
}
}
See Getting Started for client-specific install steps.