CoinGecko — Crypto Treasury Holdings by Entity ID
Retrieve crypto Treasury Holdings by Entity ID with the CoinGecko API. Supply an entity ID. Sample fields include symbols. Use it for on-chain or crypto market research. The GET request schema also lists entity_id, holding_amount_change, holding_change_percentage. Use the results for a crypto market dashboard, asset research, or comparison with a separate price feed.
- Selected price
- $0 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
CoinGecko — Crypto Treasury Holdings by Entity ID
Prepare your request, then continue with your agent.
Selected price
$0 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
countrystringholdingsobject[]amountnumberamount_per_sharenumberaverage_entry_value_usdnumbercoin_idstringcurrent_value_usdnumberentity_value_usd_percentagenumberholding_amount_changeobject14dnumber1ynumber30dnumber7dnumber90dnumberytdnumber
holding_change_percentageobject14dnumber1ynumber30dnumber7dnumber90dnumberytdnumber
percentage_of_total_supplynumbertotal_entry_value_usdnumberunrealized_pnlnumber
idstringm_navnumbernamestringsymbolstringtotal_asset_value_per_share_usdnumbertotal_treasury_value_usdnumbertwitter_screen_namestringtypestringunrealized_pnlnumberwebsite_urlstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
country?: string;
holdings?: Array<{
amount?: number;
amount_per_share?: number;
average_entry_value_usd?: number;
coin_id?: string;
current_value_usd?: number;
entity_value_usd_percentage?: number;
holding_amount_change?: {
"14d"?: number;
"1y"?: number;
"30d"?: number;
"7d"?: number;
"90d"?: number;
ytd?: number;
};
holding_change_percentage?: {
"14d"?: number;
"1y"?: number;
"30d"?: number;
"7d"?: number;
"90d"?: number;
ytd?: number;
};
percentage_of_total_supply?: number;
total_entry_value_usd?: number;
unrealized_pnl?: number;
}>;
id?: string;
m_nav?: number;
name?: string;
symbol?: string;
total_asset_value_per_share_usd?: number;
total_treasury_value_usd?: number;
twitter_screen_name?: string;
type?: string;
unrealized_pnl?: number;
website_url?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
CoinGeckoCurrent CoinGecko — Crypto Treasury Holdings by Entity ID · GET · View API reference | $0 / call | — | —successP50— |
- 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: 3. Price update time: not supplied.
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
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'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
entity_id | URL path parameterspath | string | Yes | Public company or government entity ID. *refers to [`/entities/list`](/reference/entities-list). |
holding_amount_change | URL query parametersquery | string | No | 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 | URL query parametersquery | string | No | 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.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"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/"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# CoinGecko — Crypto Treasury Holdings by Entity ID
Retrieve crypto Treasury Holdings by Entity ID with the CoinGecko API. Supply an entity ID. Sample fields include symbols. Use it for on-chain or crypto market research. The GET request schema also lists entity_id, holding_amount_change, holding_change_percentage. Use the results for a crypto market dashboard, asset research, or comparison with a separate price feed.
## Available implementations
CoinGecko · CoinGecko — Crypto Treasury Holdings by Entity ID: https://openany.si/markets/apis/capabilities/coingecko-crypto-treasury-holdings-by-entity-id?offering=44af3dc8-b048-493c-9d05-e6009d8a73c1 · $0 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/coingecko-crypto-treasury-holdings-by-entity-id
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/{entity_id}
Price: $0 / call
Provider: CoinGecko
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared 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'
```
## API contract
```json
{
"resource_type": "api",
"name": "CoinGecko — Crypto Treasury Holdings by Entity ID",
"endpoint": "https://api.openany.si/v1/agent-apis/coingecko/api/v3/public_treasury/{entity_id}",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Public company or government entity ID. \n*refers to [`/entities/list`](/reference/entities-list).",
"location": "path",
"name": "entity_id",
"nullable": false,
"required": true,
"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`",
"location": "query",
"name": "holding_amount_change",
"nullable": false,
"required": false,
"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`",
"location": "query",
"name": "holding_change_percentage",
"nullable": false,
"required": false,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "0",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Official response / contract request",
"request": {
"body": null,
"headers": {},
"path": {
"entity_id": "strategy"
},
"query": {}
},
"response_body": {
"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
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect 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.
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 / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'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 · cURLcurl \ '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'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/" }