TOOL API

get_range_coins_ohlc

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 ```json { $ref: '#/$defs/ohlc_get_range_response', $defs: { ohlc_get_range_response: { type: 'array', items: { type: 'array', items: { type: 'number' } } } } } ```

finance1 credits

Call information

Tool slug
coingecko-demo.get_range_coins_ohlc
Provider
CoinGecko
Average response
0 ms
Calls in 7 days
0

Input parameters

idrequired

string

fromrequired

starting date in ISO date string (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`) or UNIX timestamp. **use ISO date string for best compatibility**

intervalrequired

data interval

torequired

ending date in ISO date string (`YYYY-MM-DD` or `YYYY-MM-DDTHH:MM`) or UNIX timestamp. **use ISO date string for best compatibility**

vs_currencyrequired

target currency of price data *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).

jq_filter

A 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/).