Skip to main content
Glama

get_range_coins_ohlc

Fetch OHLC (Open, High, Low, Close) data for a specific cryptocurrency within a defined timestamp range using the coin ID. Optimize performance by applying a jq filter to reduce response size and focus on relevant data points.

Instructions

When using this tool, always use the jq_filter parameter to reduce the response size and improve performance.

Only omit if you're sure you don't need the data.

This endpoint allows you to get the OHLC chart (Open, High, Low, Close) of a coin within a range of timestamp based on particular coin ID

Response Schema

{ type: 'array', items: { type: 'array', items: { type: 'number' } } }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromYesstarting date in UNIX timestamp
idYes
intervalYesdata interval
jq_filterNoA jq filter to apply to the response to include certain fields. Consult the output schema in the tool description to see the fields that are available. For example: to include only the `name` field in every object of a results array, you can provide ".results[].name". For more information, see the [jq documentation](https://jqlang.org/manual/).
toYesending date in UNIX timestamp
vs_currencyYestarget currency of price data <br> *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IAcomunIA/MCP_firts'

If you have feedback or need assistance with the MCP directory API, please join our Discord server