CoinGecko Token Chart Range API
Get historical token chart data for a Unix range via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as from, to, vs_currency, and retrieve structured data including prices, market caps, and total volumes for bounded token charts, and data alignment, ready for production pipelines and AI agent automation.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
CoinGecko Token Chart Range API
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- API
- Pricing
On this page
Overview
CoinGecko Token Chart Range API
Supply asset-platform id, contract_address, vs_currency and integer from/to Unix timestamps in seconds. The response contains millisecond timestamp-value arrays. This selected token-range contract exposes precision but does not expose interval.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | path: id, contract_address; query: vs_currency, from, to, precision |
| Selected implementation | coingecko · CoinGecko — Coin Historical Chart Data within Time Range by Token Address |
| Billing | See the pricing area for the selected implementation and request options |
What You Can Build
- Bounded token charts: Request a selected historical window for a token contract.
- Data alignment: Compare returned observations using their timestamp and currency context.
Documented Response Fields
| Field | Meaning |
|---|---|
prices[] |
Pair of millisecond timestamp and reported token price |
market_caps[] |
Pair of millisecond timestamp and reported market capitalization |
total_volumes[] |
Pair of millisecond timestamp and reported 24-hour volume |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the selected implementation and pricing, then adapt the request below to your target.
- Check the HTTP response and business result before reading optional fields.
curl --request GET --get \
https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/ethereum/contract/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/market_chart/range \
-H "Authorization: Bearer ${OPENANY_API_KEY}" \
-H 'Content-Type: application/json' \
--data-urlencode from=1792972800 \
--data-urlencode to=1793059200 \
--data-urlencode vs_currency=usd
Request and Response Examples
The response is an official documentation reference that may contain historical values or optional sections. The calling template is independent; match returned resource identifiers, timestamps and requested options before using the data.
Published CoinGecko Token Chart Range API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
CoinGeckoCurrent CoinGecko — Coin Historical Chart Data within Time Range by Token Address · GET · View API reference | $0 / call | 0 | —successP50— |
- Unit price
- $0
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/{id}/contract/{contract_address}/market_chart/range- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
id | URL path parameterspath | string | Yes | Asset platform ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list). |
contract_address | URL path parameterspath | string | Yes | The contract address of token. |
vs_currency | URL query parametersquery | string | Yes | Target currency of market data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies). |
from | URL query parametersquery | integer | Yes | Starting date in UNIX timestamp. |
to | URL query parametersquery | integer | Yes | Ending date in UNIX timestamp. |
precision | URL query parametersquery | string | No | Decimal place for currency price value. enum: "full", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18" |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
market_capsnumber[][]pricesnumber[][]total_volumesnumber[][]
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Official response / contract request
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 6
Review these request fields before running. Keep the published provider and request method unchanged.
id- Asset platform ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list).
contract_address- The contract address of token.
vs_currency- Target currency of market data. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies).
from- Starting date in UNIX timestamp.
to- Ending date in UNIX timestamp.
precision- Decimal place for currency price value.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/ethereum/contract/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/market_chart/range?from=1792972800&to=1793059200&vs_currency=usd' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "market_caps": [ [ 1735689600000, 43945617394.42927 ], [ 1735776000000, 43740787028.36501 ] ], "prices": [ [ 1735689600000, 1.000540738607754 ], [ 1735776000000, 0.9995995563541714 ] ], "total_volumes": [ [ 1735689600000, 6544488766.849924 ], [ 1735776000000, 5447401746.320422 ] ] }