# Crypto

sidebar:
  order: 14

## GET /api/quantis/v2/rates/crypto/

Returns USD prices for nine major cryptocurrencies, sourced from CoinMarketCap.

| | |
|---|---|
| **Method** | `GET` |
| **URL** | `https://app.vzla.io/api/quantis/v2/rates/crypto/` |
| **Authentication** | `Authorization: Bearer vzlaio_...` |
| **Parameters** | None |

### Request

```bash
curl --request GET \
  --url 'https://app.vzla.io/api/quantis/v2/rates/crypto/' \
  --header 'Authorization: Bearer vzlaio_YOUR_TOKEN_HERE'
```

---
sidebar:
  order: 14

### Response

#### `data`

| Field | Type | Description |
|---|---|---|
| `timestamp` | string (ISO 8601 datetime) | When this snapshot was last fetched from CoinMarketCap |
| `rates` | object | Map of ticker symbol → USD price string |

**`data.rates`**

Supported symbols: `BTC`, `ETH`, `USDT`, `XRP`, `BNB`, `SOL`, `USDC`, `DOGE`, `TRX`.

Each value is a string representing the current USD price for that cryptocurrency.

#### `meta`

| Field | Type | Description |
|---|---|---|
| `source` | string | Always `"CoinMarketCap"` |
| `currency_quote` | string | Always `"USD"` |

---
sidebar:
  order: 14

### Response headers

| Header | Description |
|---|---|
| `X-API-Version` | `2.0` |
| `X-Quota-Limit` | Your monthly request limit |
| `X-Quota-Remaining` | Requests remaining this month |
| `X-Quota-Reset` | ISO 8601 timestamp of next quota reset |
| `X-Request-ID` | UUID for this request |

---
sidebar:
  order: 14

### Example response

```json
{
  "data": {
    "timestamp": "2026-05-06T20:00:02.045590+00:00",
    "rates": {
      "BTC": "81466.183799",
      "XRP": "1.42773",
      "DOGE": "0.112865",
      "USDT": "0.999785",
      "ETH": "2348.375715",
      "BNB": "650.482695",
      "TRX": "0.346772",
      "USDC": "0.99971",
      "SOL": "89.198836"
    }
  },
  "meta": {
    "source": "CoinMarketCap",
    "currency_quote": "USD"
  }
}
```

---
sidebar:
  order: 14

### HTTP status codes

| Code | Meaning |
|---|---|
| `200 OK` | Success. |
| `401 Unauthorized` | Missing or invalid token. |
| `405 Method Not Allowed` | Only GET is supported. |
| `429 Too Many Requests` | Monthly quota exhausted. |
| `500 Internal Server Error` | Server error. Retry after a short delay. |

#### 401 — no Authorization header

```json
{
  "error": {
    "code": "auth_missing",
    "message": "Authentication credentials were not provided"
  }
}
```

#### 401 — invalid token

```json
{
  "error": {
    "code": "auth_token_unknown",
    "message": "Invalid token format"
  }
}
```

#### 429

```json
{
  "error": {
    "code": "quota_exceeded",
    "message": "Monthly quota limit exceeded.",
    "details": {
      "reset_at": "2026-06-01T00:00:00Z"
    }
  }
}
```
**Note:** This endpoint is cached for **5 minutes**, matching CoinMarketCap's update cadence.