Fiat Currencies

Fiat currency exchange rates with USD as base currency, cached and served through Bitcompare's API.


GET/api/v1/fiat

List all currencies

Get all supported fiat currencies with their exchange rates relative to USD.

Request

GET
/api/v1/fiat
curl https://api.bitcompare.net/api/v1/fiat

Response

{
  "data": {
    "currencies": [
      {
        "id": "eur",
        "symbol": "EUR",
        "name": "Euro",
        "coinType": "fiat",
        "exchangeRate": 0.92,
        "lastFiatSync": "2025-10-29T14:00:00Z",
        "createdAt": "2025-01-01T00:00:00Z",
        "updatedAt": "2025-10-29T14:00:00Z"
      },
      {
        "id": "gbp",
        "symbol": "GBP",
        "name": "British Pound",
        "coinType": "fiat",
        "exchangeRate": 0.79,
        "lastFiatSync": "2025-10-29T14:00:00Z",
        "createdAt": "2025-01-01T00:00:00Z",
        "updatedAt": "2025-10-29T14:00:00Z"
      }
    ],
    "count": 2,
    "baseCurrency": "USD"
  }
}

GET/api/v1/fiat/:symbol

Get currency by symbol

Get a specific fiat currency by its 3-letter ISO symbol.

Path parameters

  • Name
    symbol
    Type
    string
    Description

    ISO 4217 currency code — exactly 3 letters (e.g., "EUR", "GBP", "JPY"). Case-insensitive.

Request

GET
/api/v1/fiat/EUR
curl https://api.bitcompare.net/api/v1/fiat/EUR

Response

{
  "data": {
    "id": "eur",
    "symbol": "EUR",
    "name": "Euro",
    "coinType": "fiat",
    "exchangeRate": 0.92,
    "lastFiatSync": "2025-10-29T14:00:00Z",
    "createdAt": "2025-01-01T00:00:00Z",
    "updatedAt": "2025-10-29T14:00:00Z"
  }
}

GET/api/v1/fiat/rates/usd

USD exchange rates

Get all exchange rates as a simple key-value map optimized for quick lookups. Returns currency symbol to rate pairs.

Request

GET
/api/v1/fiat/rates/usd
curl https://api.bitcompare.net/api/v1/fiat/rates/usd

Response

{
  "data": {
    "baseCurrency": "USD",
    "rates": {
      "EUR": 0.92,
      "GBP": 0.79,
      "JPY": 149.50,
      "AUD": 1.53
    },
    "count": 4,
    "timestamp": "2025-10-29T14:00:00Z"
  }
}

GET/api/v1/fiat/stats

Fiat stats

Get statistics about the fiat currency data including total tracked currencies and sync freshness.

Request

GET
/api/v1/fiat/stats
curl https://api.bitcompare.net/api/v1/fiat/stats

Response

{
  "data": {
    "totalCurrencies": 160,
    "lastUpdate": "2025-10-29T14:00:00Z",
    "staleCurrencies": 0
  }
}

GET/api/v1/fiat/status

Sync status

Get the current fiat sync job status including whether a sync is running and when the next one is scheduled.

Request

GET
/api/v1/fiat/status
curl https://api.bitcompare.net/api/v1/fiat/status

Response

{
  "data": {
    "isRunning": false,
    "lastSync": "2025-10-29T14:00:00Z",
    "nextSync": "2025-10-29T14:15:00Z",
    "statistics": {
      "totalCurrencies": 160,
      "lastUpdate": "2025-10-29T14:00:00Z",
      "staleCurrencies": 0
    }
  }
}

Was this page helpful?