---
title: "Get current rates"
method: GET
path: "/api/v1/rates"
tags: ["rates"]
---

# Get current rates

`GET /api/v1/rates`

## Request

- Base URL: `https://api.bitcompare.net`
- URL: `https://api.bitcompare.net/api/v1/rates`
- Auth: one of:
  - none
  - HTTP bearer

List current rates across providers, optionally filtered by symbol, category, or provider. For "what is the best yield on BTC right now?" style questions, ALWAYS pass category="lending"/"borrowing"/"staking" — an unfiltered call mostly returns spot prices (category="price"), not yields.

## Query parameters

- `symbol` string
- `category` 'lending' | 'borrowing' | 'staking' | 'price'
- `limit` integer

## Response `200`

Successful response

- object
  - `data` object, required
    - `rates` object[], required: Matching rate entries
      - `provider` string, required: Provider slug, e.g. `nexo`
      - `symbol` string, required: Coin symbol, e.g. `btc`
      - `category` 'lending' | 'borrowing' | 'staking' | 'price', required: Product category
      - `rate` number, required: Rate value; semantics depend on unitType (percentage APY vs absolute price)
      - `coinId` string, nullable, required: Canonical coin id, e.g. `bitcoin` (nullable)
      - `providerSymbol` string, nullable
      - `metadata` object, nullable
      - `unitType` 'percentage' | 'absolute' | 'ratio'
      - `unitSymbol` string, nullable
      - `lastUpdated` string, required: ISO-8601 timestamp of the most recent rate refresh
      - `ageSeconds` integer: Seconds since lastUpdated — use this to discount stale rows rather than trusting them as current
      - `stale` boolean: True when this row is old enough that it should be treated with caution (audit BC-9)
    - `count` number, required: Number of rates returned
    - `timestamp` string: ISO-8601 response timestamp (omitted on /rates/{symbol})
    - `symbol` string: Present on the /rates/{symbol} variant

## Other responses

- `401`: Missing or invalid API key
- `429`: Plan rate limit exceeded — see X-RateLimit-* headers and Retry-After

---

[API](https://skmtc.dev/bitcompare/apis/bitcompare-api.md) · [All operations](https://skmtc.dev/bitcompare/apis/bitcompare-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bitcompare/apis/bitcompare-api/revisions/936dfbf752d2?raw)
