Skip to content
chainkit / signal · providers — · 24h fleet telemetry
p95 ·
Public utilities · tool 07 of 07

BTC price history.

Chart the BTC ↔ fiat rate across 24h / 7d / 30d / 1y windows. Same data the chainkit SDK exposes via GetHistoricalRates — drawn from CoinGecko with the upstream resolution auto-selected per window.

Currency
Range
BTC / usd 0 points · coingecko
how this works

One upstream, all the resolutions.

This page calls /v1/public/btc/history, which asks the chainkit SDK for the BTC ↔ USD rate over the selected window. The SDK forwards to CoinGecko (the only provider with historical depth across our currency set) with the resolution auto-selected per window — 5-minute candles at 24h, hourly at 7d / 30d, daily at 1y.

See live provider performance
API · same call, in code

Use this in your code.

Resolution auto-selected by the upstream provider — 5-min candles at 24h, hourly at 7d/30d, daily at 1y.

$ curl
curl -sS '/v1/public/btc/history?currency=USD&range=30d'
client.go
since := time.Now().Add(-30 * 24 * time.Hour)
until := time.Now()
points, err := provider.GetHistoricalRates(
    ctx, types.CoinTickerBTC, types.Currency("USD"), since, until,
)
if err != nil {
    log.Fatal(err)
}
for _, p := range points {
    fmt.Printf("%s  %s\n", p.Timestamp.Format(time.RFC3339), p.Rate.Text('f', 2))
}
response.json
// run the lookup above to see the live response