# CoinGecko — Coin Historical Chart Data by Token Address

Get historical token charts via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as days, vs_currency, and retrieve structured data including prices, market caps, and total volumes for token charts, and series comparisons, ready for production pipelines and AI agent automation using a single OpenAny API key.

Documentation: https://openany.si/coingecko/coingecko-coin-historical-chart-data-by-token-address/898a44a2-60d6-4981-b5b1-8bb7aa904bae/
API ID: 898a44a2-60d6-4981-b5b1-8bb7aa904bae
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/{id}/contract/{contract_address}/market_chart
Page update time: 2026-12-03T02:49:12.879Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:12.517Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## CoinGecko Token Market Chart API

In this contract-address route, id is an asset-platform ID. Supply contract\_address, vs\_currency and days to retrieve separate price, market-cap and volume series. Optional interval accepts daily or hourly; omitted interval uses automatic granularity.

## What You Can Build

- **Token charts**: Build a historical chart from a known platform and token address.
- **Series comparisons**: Keep currency units and millisecond timestamps with each returned value.

## 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 |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CoinGecko — Coin Historical Chart Data by Token Address request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Asset platform ID. \n*refers to [`/asset_platforms`](/reference/asset-platforms-list)."
        },
        "contract_address": {
          "type": "string",
          "description": "The contract address of token."
        }
      },
      "required": [
        "id",
        "contract_address"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "vs_currency": {
          "type": "string",
          "description": "Target currency of market data. \n*refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)."
        },
        "days": {
          "type": "string",
          "description": "Data up to number of days ago. \nYou may use any integer or `max` for number of days."
        },
        "interval": {
          "type": "string",
          "description": "Data interval, leave empty for auto granularity.",
          "enum": [
            "daily",
            "hourly"
          ]
        },
        "precision": {
          "type": "string",
          "description": "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": [
        "vs_currency",
        "days"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "market_caps": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "prices": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "total_volumes": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    }
  }
}
```

## Request example
Scenario: Official example · Official response / contract request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/coingecko/api/v3/coins/ethereum/contract/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/market_chart?days=1&vs_currency=usd' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "market_caps": [
    [
      1779619498604,
      76419636272.78033
    ],
    [
      1779619877081,
      76424065983.84229
    ]
  ],
  "prices": [
    [
      1779619498604,
      0.9997624087636037
    ],
    [
      1779619877081,
      0.9997817655336941
    ]
  ],
  "total_volumes": [
    [
      1779619498604,
      9374311493.936354
    ],
    [
      1779619877081,
      9390008044.485624
    ]
  ]
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Should I pass the coin ID as id?
No. Use the asset-platform ID, such as ethereum, together with the token contract address.

### Which days values can I use?
The input description accepts an integer lookback or max, represented as a string. It does not define a universal available-history guarantee.

### Can I control granularity?
interval accepts daily or hourly; omit it for automatic granularity. precision is a separate price-decimal option.

### Does the response return OHLC candles?
No. It returns separate timestamp-value series for prices, market caps and 24-hour volumes.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- CoinGecko: https://openany.si/coingecko/coingecko-coin-historical-chart-data-by-token-address/898a44a2-60d6-4981-b5b1-8bb7aa904bae/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
