nethereum/nethereum/coingecko-api

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Fetch token metadata, prices by contract address or CoinGecko ID, asset platform mappings, and token lists via the CoinGecko API in Nethereum.DataServices

Install

npx vskill@latest install nethereum/nethereum/coingecko-api

SKILL.md

CoinGecko API

Access CoinGecko token metadata, pricing, and asset platform mappings using Nethereum.DataServices.

NuGet Package: Nethereum.DataServices

Installation

bash
dotnet add package Nethereum.DataServices

Quick Start

csharp
using Nethereum.DataServices.CoinGecko;
var coingecko = new CoinGeckoApiService();
// Map chain ID to CoinGecko platform
string platformId = await coingecko.GetPlatformIdForChainAsync(chainId: 1);
// "ethereum"
// Get token list for a chain
var tokenList = await coingecko.GetTokenListForChainAsync(chainId: 1);
Console.WriteLine($"Ethereum tokens: {tokenList.Tokens.Count}");
// Get prices by CoinGecko ID
var prices = await coingecko.GetPricesAsync(new[] { "ethereum", "usd-coin" }, "usd");
Console.WriteLine($"ETH: ${prices["ethereum"]["usd"]}");
// Get price by contract address
decimal? usdcPrice = await coingecko.GetTokenPriceByContractAsync(
"ethereum", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "usd");

Available Methods

MethodReturnsDescription
GetAssetPlatformsAsync(forceRefresh?)List<CoinGeckoAssetPlatform>All blockchain platforms with chain identifiers
GetPlatformIdForChainAsync(chainId)stringMap numeric chain ID to CoinGecko platform ID
GetCoinsListAsync(forceRefresh?)List<CoinGeckoCoin>Every coin with platform/address mappings
GetTokenListForChainAsync(chainId, forceRefresh?)CoinGeckoTokenListToken list for a chain (address, symbol, name, decimals, logo)
GetTokenListForPlatformAsync(platformId, forceRefresh?)CoinGeckoTokenListToken list by platform ID
GetTokensForChainAsync(chainId, forceRefresh?)List<CoinGeckoToken>Flat token collection for a chain
GetPricesAsync(geckoIds, vsCurrency)Dictionary<string, Dictionary<string, decimal>>Batch prices by CoinGecko ID
GetTokenPriceByContractAsync(platformId, address, vsCurrency)decimal?Price by contract address (null if not found)
FindCoinGeckoIdAsync(contractAddress, chainId)stringMap contract address to CoinGecko ID
FindCoinGeckoIdsAsync(addresses, chainId)Dictionary<string, string>Batch address-to-ID mapping
ClearCache()voidClear all cached data

Asset Platforms

csharp
var platforms = await coingecko.GetAssetPlatformsAsync();
foreach (var p in platforms.Where(x => x.ChainIdentifier.HasValue).Take(10))
Console.WriteLine($"Chain {p.ChainIdentifier}: {p.Id} ({p.Name})");

Token Lists

csharp
var tokenList = await coingecko.GetTokenListForChainAsync(chainId: 1);
foreach (var token in tokenList.Tokens.Take(5))
Console.WriteLine($"{token.Symbol}: {token.Name} ({token.Address})");

Pricing

csharp
// By CoinGecko ID (batches at 250 per request)
var prices = await coingecko.GetPricesAsync(
new[] { "ethereum", "usd-coin", "bitcoin" }, "usd");
// By contract address
decimal? price = await coingecko.GetTokenPriceByContractAsync(
"ethereum", "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "usd");

Address-to-ID Mapping

csharp
string geckoId = await coingecko.FindCoinGeckoIdAsync(
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", chainId: 1);
// "usd-coin"
var ids = await coingecko.FindCoinGeckoIdsAsync(
new[] { "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "0xdAC17F958D2ee523a2206206994597C13D831ec7" },
chainId: 1);

Cache Configuration

csharp
var config = new CoinGeckoCacheConfiguration
{
Enabled = true,
PlatformsCacheDuration = TimeSpan.FromHours(24),
CoinsListCacheDuration = TimeSpan.FromHours(1),
TokenListCacheDuration = TimeSpan.FromHours(1),
RateLimitDelay = TimeSpan.FromMilliseconds(1500)
};
var coingecko = new CoinGeckoApiService(config);
// Disable caching (for tests)
var testService = new CoinGeckoApiService(CoinGeckoCacheConfiguration.Disabled);
// Force refresh specific cache
var fresh = await coingecko.GetAssetPlatformsAsync(forceRefresh: true);
// Clear all caches
coingecko.ClearCache();

Key Namespaces

  • Nethereum.DataServices.CoinGecko — Service, cache config, and response models

Documentation

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/nethereum/nethereum/coingecko-api/badge)](https://verified-skill.com/skills/nethereum/nethereum/coingecko-api)

Something wrong with this skill or its page? Tell us.