OpenAny
Get API keyAPI Key
APICrypto & DeFi

coingecko logo
CoinGecko Entity Treasury Holdings API

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.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

CoinGecko Entity Treasury Holdings API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
API
Pricing
Connect your agent
On this page

Overview

Overview
CoinGecko Entity Treasury Holdings API

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.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs path: entity_id; query: holding_amount_change, holding_change_percentage
Selected implementation coingecko · CoinGecko — Crypto Treasury Holdings by Entity ID
Billing See the pricing area for the selected implementation and request options

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

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the selected implementation and pricing, then adapt the request below to your target.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl --request GET --get \
  https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/strategy \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json'

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 Entity Treasury Holdings 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

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
Public company or government entity ID. *refers to [`/entities/list`](/reference/entities-list).
Include holding amount change for specified timeframes, comma-separated if querying more than 1 timeframe. Valid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`
Include holding change percentage for specified timeframes, comma-separated if querying more than 1 timeframe. Valid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
CoinGeckoCurrent
CoinGecko — Crypto Treasury Holdings by Entity ID · GET · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · CoinGeckoUSD / call
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.

calls

Total $0

API

Method
GET
Endpoint
https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/{entity_id}
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
entity_idURL path parameterspathstringYes

Public company or government entity ID. *refers to [`/entities/list`](/reference/entities-list).

holding_amount_changeURL query parametersquerystringNo

Include holding amount change for specified timeframes, comma-separated if querying more than 1 timeframe. Valid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`

holding_change_percentageURL query parametersquerystringNo

Include holding change percentage for specified timeframes, comma-separated if querying more than 1 timeframe. Valid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • countrystring
  • holdingsobject[]
    • amountnumber
    • amount_per_sharenumber
    • average_entry_value_usdnumber
    • coin_idstring
    • current_value_usdnumber
    • entity_value_usd_percentagenumber
    • holding_amount_changeobject
      • 14dnumber
      • 1ynumber
      • 30dnumber
      • 7dnumber
      • 90dnumber
      • ytdnumber
    • holding_change_percentageobject
      • 14dnumber
      • 1ynumber
      • 30dnumber
      • 7dnumber
      • 90dnumber
      • ytdnumber
    • percentage_of_total_supplynumber
    • total_entry_value_usdnumber
    • unrealized_pnlnumber
  • idstring
  • m_navnumber
  • namestring
  • symbolstring
  • total_asset_value_per_share_usdnumber
  • total_treasury_value_usdnumber
  • twitter_screen_namestring
  • typestring
  • unrealized_pnlnumber
  • website_urlstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect 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.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 3

    Review these request fields before running. Keep the published provider and request method unchanged.

    entity_id
    Public company or government entity ID. *refers to [`/entities/list`](/reference/entities-list).
    holding_amount_change
    Include holding amount change for specified timeframes, comma-separated if querying more than 1 timeframe. Valid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`
    holding_change_percentage
    Include holding change percentage for specified timeframes, comma-separated if querying more than 1 timeframe. Valid values: `7d`, `14d`, `30d`, `90d`, `1y`, `ytd`
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "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/"
    }

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.

Use CoinGecko Entity Treasury Holdings API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.