OpenAny
Get API keyAPI Key
APICrypto & DeFi

coingecko logo
CoinGecko Treasury Holdings Chart API

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.

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 Treasury Holdings Chart 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 Treasury Holdings Chart API

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.

Quick Facts

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

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

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/bitcoin/holding_chart \
  -H "Authorization: Bearer ${OPENANY_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data-urlencode days=365

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 Treasury Holdings Chart 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).
Coin ID. e.g. `bitcoin`, `ethereum`, `solana`, `binancecoin`
Data up to number of days ago. Valid values: `7`, `14`, `30`, `90`, `180`, `365`
Include empty intervals with no transaction data. Default: `false`

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 Historical Chart Data by 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}/{coin_id}/holding_chart
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).

coin_idURL path parameterspathstringYes

Coin ID. e.g. `bitcoin`, `ethereum`, `solana`, `binancecoin`

daysURL query parametersquerystringYes

Data up to number of days ago. Valid values: `7`, `14`, `30`, `90`, `180`, `365`

include_empty_intervalsURL query parametersquerybooleanNo

Include empty intervals with no transaction data. Default: `false`

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

Response structure

Inferred from examples
  • holding_value_in_usdnumber[][]
  • holdingsnumber[][]

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 4

    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).
    coin_id
    Coin ID. e.g. `bitcoin`, `ethereum`, `solana`, `binancecoin`
    days
    Data up to number of days ago. Valid values: `7`, `14`, `30`, `90`, `180`, `365`
    include_empty_intervals
    Include empty intervals with no transaction data. Default: `false`
    Terminal · cURL
    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'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "holding_value_in_usd": [
        [
          1748736000000,
          60818730878.617355
        ],
        [
          1749340800000,
          61506606585.45032
        ]
      ],
      "holdings": [
        [
          1748736000000,
          580955.0
        ],
        [
          1749340800000,
          582000.0
        ]
      ]
    }

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.

Use CoinGecko Treasury Holdings Chart API with your agent

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