Skip to content
All providers
Provider

CoinGecko

id: coingecko

Provider docs

Rate fetching only (no on-chain data).

Capabilities

What this provider does inside chainkit

  • Exchange rate

    Quote BTC against fiat / other coins.

  • Key validate

    Check whether the provider API key is alive and authorised.

Operational

Running it in production

Auth
optional
Chains
btc/mainnet
Free tier
10-30 req/min without a key
Paid tier
Demo/Pro plans for higher RPM
Rate limit
10-30/min free, up to 500/min on paid
In the SDK

Wire CoinGecko via the chainkit builder

The builder accepts every provider you want in rotation. chainkit handles failover, retries, and scoring across them — pick capability coverage, not a single vendor.

import (
  "github.com/exapsy/chainkit"
  "github.com/exapsy/chainkit/bitcoin/providers"
  bttypes "github.com/exapsy/chainkit/bitcoin/types"
)

p := providers.NewCoingecko(/* opts — see godoc */)

client, _ := chainkit.NewMixedProvidersBuilder().
  WithProvider(p).
  Build(ctx)

Snippet illustrative; refer to the godoc for the exact constructor signature.

Last 24 hours

Live performance

Pulled from the same scoreboard as /scoreboard, narrowed to CoinGecko. Polled every minute.

Loading live numbers…