Documentation / New API reference / CoinGecko
Get CoinGecko Pair
Reference
Last reviewed 2026-10-07
Single pair metadata for CoinGecko.
Try it
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | query | string | Yes | Pair id in the form 0-{netuid} where netuid >= 1 (e.g. 0-1). |
Responses
200 — CoinGecko pair metadata
| Field | Type | Required | Description |
|---|---|---|---|
pair | object | Yes | CoinGecko pair descriptor. Field names are camelCase per the CoinGecko contract. |
pair.asset0Id | string | Yes | Asset 0 id. Always "0" (TAO). |
pair.asset1Id | string | Yes | Asset 1 id — the subnet netuid as a string. |
pair.dexKey | string | Yes | DEX key. Always "taostats". |
pair.id | string | Yes | Pair id, echoed from the request (0-{netuid}). |
400 — Invalid pair id
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Plain-english message describing the failure from the caller's perspective. |
status_code | integer (int32) | Yes | HTTP status code (mirrored in the response status line for convenience). |
404 — Pair not found
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Plain-english message describing the failure from the caller's perspective. |
status_code | integer (int32) | Yes | HTTP status code (mirrored in the response status line for convenience). |
500 — Internal server error
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Plain-english message describing the failure from the caller's perspective. |
status_code | integer (int32) | Yes | HTTP status code (mirrored in the response status line for convenience). |
Every request needs an Authorization header holding your API key — see Getting started with the Taostats API.