# CoinGecko — Crypto Treasury Holdings Historical Chart Data by ID

Get CoinGecko treasury holdings history by entity and coin via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, pass parameters such as days, and retrieve structured data including holdings and holding value in usd for holdings history charts, and entity research, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/coingecko/coingecko-crypto-treasury-holdings-historical-chart-data-by-id/a1610196-f66f-4335-81f9-25165bce5d2a/
API ID: a1610196-f66f-4335-81f9-25165bce5d2a
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/{entity_id}/{coin_id}/holding_chart
Page update time: 2026-12-03T02:49:14.487Z
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:14.129Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## CoinGecko Treasury Holdings Chart API

Supply entity\_id, coin\_id and days. holdings and holding\_value\_in\_usd are separate timestamp-value arrays using Unix milliseconds. include\_empty\_intervals controls inclusion of intervals without transaction data and defaults to false.

## What You Can Build

- **Holdings history charts**: Plot quantity separately from USD valuation.
- **Entity research**: Inspect a selected entity and coin over the documented lookback.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `holdings[]` | Pair of millisecond timestamp and reported coin quantity |
| `holding_value_in_usd[]` | Pair of millisecond timestamp and reported holding value in USD |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CoinGecko — Crypto Treasury Holdings Historical Chart Data by ID 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": {
        "entity_id": {
          "type": "string",
          "description": "Public company or government entity ID. \n*refers to [`/entities/list`](/reference/entities-list)."
        },
        "coin_id": {
          "type": "string",
          "description": "Coin ID. \ne.g. `bitcoin`, `ethereum`, `solana`, `binancecoin`"
        }
      },
      "required": [
        "entity_id",
        "coin_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "days": {
          "type": "string",
          "description": "Data up to number of days ago. \nValid values: `7`, `14`, `30`, `90`, `180`, `365`"
        },
        "include_empty_intervals": {
          "type": "boolean",
          "description": "Include empty intervals with no transaction data. \nDefault: `false`"
        }
      },
      "required": [
        "days"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "holding_value_in_usd": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number"
        }
      }
    },
    "holdings": {
      "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/public_treasury/strategy/bitcoin/holding_chart?days=365' \
  -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
{
  "holding_value_in_usd": [
    [
      1748736000000,
      60818730878.617355
    ],
    [
      1749340800000,
      61506606585.45032
    ]
  ],
  "holdings": [
    [
      1748736000000,
      580955.0
    ],
    [
      1749340800000,
      582000.0
    ]
  ]
}
```

## 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
### Which days values are documented?
Use the strings 7, 14, 30, 90, 180 or 365. This selected contract does not document max or a custom from/to range.

### Are holdings and holding_value_in_usd interchangeable?
No. One is a coin quantity and the other a USD valuation. Keep both series’ timestamps and units.

### Can I request intervals without a transaction?
Set include_empty_intervals=true. The default is false, so missing intervals should not be treated as a zero holding.

### Can one call return all coins held by an entity?
This chart route requires one coin_id. Use Entity Treasury Holdings for the entity’s reported holdings list.

### 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-crypto-treasury-holdings-historical-chart-data-by-id/a1610196-f66f-4335-81f9-25165bce5d2a/

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