get_ohlcv
Pack: solscan · 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/get_ohlcv for the schema, then POST the same URL with its arguments for the data.
OHLCV price candles for a Solana liquidity pool (1-minute to 1-year buckets, cursor-paged). Announced by Solscan 2026-10-07; Pipeworx has not been able to verify the exact response shape because this is a Pro-tier-only endpoint and Pipeworx has no Pro-tier key — pass whatever extra query parameters Solscan’s own docs specify via extra_params if the named fields below are not enough. Pro tier — requires your own Solscan API key (Pipeworx’s platform key is Free tier and cannot call this).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
pool_address | string | yes | Solana liquidity pool address (base58) |
time_bucket | string | no | Candle size, e.g. “1m”, “1H”, “1D”, “1W” — Solscan supports 1 minute to 1 year. |
time_from | number | no | Unix timestamp (seconds), start of range |
time_to | number | no | Unix timestamp (seconds), end of range |
cursor | string | no | Pagination cursor from a previous response |
extra_params | object | no | Any additional query parameters Solscan’s docs name that are not covered above — forwarded verbatim. |
properties | unknown | no |
Example call
Arguments
{
"pool_address": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"time_bucket": "1D"
}
curl
curl -X POST https://gateway.pipeworx.io/solscan/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_ohlcv","arguments":{"pool_address":"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2","time_bucket":"1D"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_ohlcv', {
"pool_address": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
"time_bucket": "1D"
});
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 solscan pack
{
"mcpServers": {
"solscan": {
"url": "https://gateway.pipeworx.io/solscan/mcp"
}
}
}
See Getting Started for client-specific install steps.