# 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/market/apis/coingecko/coingecko-crypto-treasury-holdings-by-entity-id/?offering=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
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
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
}
```

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

## Available implementations
- CoinGecko: https://openany.si/market/apis/coingecko/coingecko-crypto-treasury-holdings-by-entity-id/?offering=44af3dc8-b048-493c-9d05-e6009d8a73c1

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