# CoinGecko — Crypto Treasury Holdings by Entity ID

Get CoinGecko treasury holdings by entity ID via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by CoinGecko, configure supported query parameters and filters, and retrieve structured data including coinGecko entity identifier, held CoinGecko coin identifier, and reported coin quantity for treasury detail panels, and holdings review, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/coingecko/coingecko-crypto-treasury-holdings-by-entity-id/44af3dc8-b048-493c-9d05-e6009d8a73c1/
API ID: 44af3dc8-b048-493c-9d05-e6009d8a73c1
Provider: CoinGecko
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/{entity_id}
Page update time: 2026-12-03T02:49:14.474Z
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.103Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

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

Pass an entity\_id to retrieve one entity profile and its holdings array. Optional holding\_amount\_change and holding\_change\_percentage select supported comma-separated timeframes. Keep coin quantities, USD valuations and percentage measures separate.

## What You Can Build

- **Treasury detail panels**: Show reported coin quantities and USD valuations for one entity.
- **Holdings review**: Compare requested quantity and percentage changes without mixing units.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `id` | CoinGecko entity identifier |
| `total_treasury_value_usd` | Reported total treasury value in USD |
| `holdings[].coin_id` | Held CoinGecko coin identifier |
| `holdings[].amount` | Reported coin quantity |
| `holdings[].current_value_usd` | Reported current holding value in USD |
| `holdings[].holding_amount_change.<period>` | Reported quantity change when requested |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "CoinGecko — Crypto Treasury Holdings by Entity 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)."
        }
      },
      "required": [
        "entity_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "holding_amount_change": {
          "type": "string",
          "description": "Include holding amount change for specified timeframes, comma-separated if querying more than 1 timeframe. \nValid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`"
        },
        "holding_change_percentage": {
          "type": "string",
          "description": "Include holding change percentage for specified timeframes, comma-separated if querying more than 1 timeframe. \nValid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "country": {
      "type": "string"
    },
    "holdings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number"
          },
          "amount_per_share": {
            "type": "number"
          },
          "average_entry_value_usd": {
            "type": "number"
          },
          "coin_id": {
            "type": "string"
          },
          "current_value_usd": {
            "type": "number"
          },
          "entity_value_usd_percentage": {
            "type": "number"
          },
          "holding_amount_change": {
            "type": "object",
            "properties": {
              "14d": {
                "type": "number"
              },
              "1y": {
                "type": "number"
              },
              "30d": {
                "type": "number"
              },
              "7d": {
                "type": "number"
              },
              "90d": {
                "type": "number"
              },
              "ytd": {
                "type": "number"
              }
            }
          },
          "holding_change_percentage": {
            "type": "object",
            "properties": {
              "14d": {
                "type": "number"
              },
              "1y": {
                "type": "number"
              },
              "30d": {
                "type": "number"
              },
              "7d": {
                "type": "number"
              },
              "90d": {
                "type": "number"
              },
              "ytd": {
                "type": "number"
              }
            }
          },
          "percentage_of_total_supply": {
            "type": "number"
          },
          "total_entry_value_usd": {
            "type": "number"
          },
          "unrealized_pnl": {
            "type": "number"
          }
        }
      }
    },
    "id": {
      "type": "string"
    },
    "m_nav": {
      "type": "number"
    },
    "name": {
      "type": "string"
    },
    "symbol": {
      "type": "string"
    },
    "total_asset_value_per_share_usd": {
      "type": "number"
    },
    "total_treasury_value_usd": {
      "type": "number"
    },
    "twitter_screen_name": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "unrealized_pnl": {
      "type": "number"
    },
    "website_url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official response / contract request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/strategy' \
  -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
{
  "country": "US",
  "holdings": [
    {
      "amount": 843738.0,
      "amount_per_share": 0.002355494137353434,
      "average_entry_value_usd": 75698.9203982753,
      "coin_id": "bitcoin",
      "current_value_usd": 64383151578.86817,
      "entity_value_usd_percentage": 100.0,
      "holding_amount_change": {
        "14d": 24869.0,
        "1y": 263488.0,
        "30d": 28677.0,
        "7d": 0.0,
        "90d": 126016.0,
        "ytd": 171238.0
      },
      "holding_change_percentage": {
        "14d": 3.037,
        "1y": 45.409,
        "30d": 3.518,
        "7d": 0.0,
        "90d": 17.558,
        "ytd": 25.463
      },
      "percentage_of_total_supply": 4.018,
      "total_entry_value_usd": 63870055699.0,
      "unrealized_pnl": 513095879.8681717
    }
  ],
  "id": "strategy",
  "m_nav": 1.03,
  "name": "Strategy",
  "symbol": "MSTR.US",
  "total_asset_value_per_share_usd": 179.74079167746558,
  "total_treasury_value_usd": 64383151578.86817,
  "twitter_screen_name": "Strategy",
  "type": "company",
  "unrealized_pnl": 513095879.8681717,
  "website_url": "https://www.strategy.com/"
}
```

## 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
### Is entity_id a coin ID?
No. It identifies the company or government entity, such as strategy. Each holdings entry has its own coin_id.

### Which change periods can I request?
The documented periods are 7d, 14d, 30d, 90d, 1y and ytd. Use comma-separated values for multiple periods.

### Is an amount change the same as a percentage change?
No. holding_amount_change describes coin-quantity changes; holding_change_percentage describes relative changes.

### Can I list treasury transactions with this endpoint?
This endpoint returns a holdings summary. Use Treasury Transaction History for dated activity and source references.

### 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-by-entity-id/44af3dc8-b048-493c-9d05-e6009d8a73c1/

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