> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tender.cash/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch Exchange Rates

> Get the current price of a cryptocurrency in USD and a fiat currency

> [!NOTE]
>
> **Auth method: Basic (Access ID)** — this endpoint only requires your
> `x-access-id` header. No request signing is needed. See
> [Authentication](https://docs.tender.cash/api-reference/authentication.md#basic-access-id-authentication).

Returns the current price of one unit of a cryptocurrency in USD and in a fiat currency of your
choice. Without the `currency` query parameter, the fiat currency is USD, so `rate` equals `usd`.

System endpoints share a limit of 120 requests per minute. See [Rate limits](https://docs.tender.cash/api-reference/rate-limits.md).

## Path Parameters

**coin** `string` *required*

Cryptocurrency identifier, as returned by [Fetch All Currencies](https://docs.tender.cash/api-reference/endpoint/fetch-currencies.md)

**Example:** `"bitcoin"`

## Query Parameters

**currency** `string` (default: usd)

Fiat currency code to price the coin in. Case-insensitive.

**Example:** `"ngn"`

## Headers

**x-access-id** `string` *required*

Your API access ID provided by Tender

**Example:** `"your-access-id-here"`

## Response

**status** `string` *required*

Status of the API request

**Example:** `"success"`

**message** `string` *required*

Human-readable message describing the result

**Example:** `"success"`

**data** `object` *required*

Price of the coin

**data properties**

**coin** `string`

The cryptocurrency identifier you requested

**Example:** `"bitcoin"`

**usd** `number`

Price of one unit in USD

**Example:** `82752`

**rate** `number | null`

Price of one unit in `currency`. `null` if no rate is available for that fiat currency.

**Example:** `127843151.04`

**currency** `string`

The fiat currency `rate` is in, lowercase. `usd` when you didn't send `currency`.

**Example:** `"ngn"`

## Errors

| HTTP | Message | Cause |
| - | - | - |
| 400 | `Invalid Currency` | Unknown `coin` |
| 400 | `Exchange Price Error` | No price is available for the coin right now |

## Example request

```bash theme={null}
curl "https://sandbox-api.tender.cash/v1/api/system/rates/bitcoin?currency=ngn" \
  -H "x-access-id: your-access-id-here"
```

## Example response

```json theme={null}
{
  "status": "success",
  "message": "success",
  "data": {
    "coin": "bitcoin",
    "usd": 82752,
    "rate": 127843151.04,
    "currency": "ngn"
  }
}
```


## OpenAPI

````yaml GET /v1/api/system/rates/{coin}
openapi: 3.1.0
info:
  title: Tender API
  description: Tender Developer API for cryptocurrency payments and agent management
  version: 2.0.0
  contact:
    name: Tender Support
    url: https://tender.cash
servers:
  - url: https://secureapi.tender.cash
    description: Production Server
  - url: https://sandbox-api.tender.cash
    description: Sandbox Server
security:
  - SignedAuth: []
tags:
  - name: Agents
    description: Manage agents and sub-businesses
  - name: Transactions
    description: Payment and transaction operations
  - name: System
    description: System information and configuration
  - name: Webhooks
    description: Webhook management and logs
  - name: On-ramp
    description: Fiat-to-crypto on-ramp operations
  - name: Payouts
    description: Send crypto from merchant balance to a wallet address or payout account
  - name: Subwallets
    description: Provision and manage crypto wallet infrastructure for your end-users
  - name: Conversions
    description: Swap crypto between coins and chains, or convert to a payout account
paths:
  /v1/api/system/rates/{coin}:
    get:
      tags:
        - System
      summary: Fetch Exchange Rates
      description: >-
        Price of one unit of a cryptocurrency in USD and in a fiat currency (USD
        when `currency` is omitted).
      operationId: getExchangeRates
      parameters:
        - name: coin
          in: path
          required: true
          description: Cryptocurrency identifier (e.g. bitcoin, usdt)
          schema:
            type: string
          example: bitcoin
        - name: currency
          in: query
          required: false
          description: Fiat currency code, case-insensitive. Defaults to usd.
          schema:
            type: string
            default: usd
          example: ngn
        - name: x-access-id
          in: header
          required: true
          description: Your API access ID provided by Tender
          schema:
            type: string
          example: your-access-id-here
      responses:
        '200':
          description: Rate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExchangeRateResponse'
              example:
                status: success
                message: success
                data:
                  coin: bitcoin
                  usd: 82752
                  rate: 127843151.04
                  currency: ngn
        '400':
          description: Unknown coin or no price available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentsErrorResponse'
              example:
                status: error
                message: Invalid Currency
                data: {}
        '401':
          description: Missing or unknown access ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentsErrorResponse'
              example:
                status: error
                message: INVALID_REQUEST_SIGNATURE
                data: {}
        '429':
          description: Too many requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentsErrorResponse'
              example:
                status: error
                message: Too many requests. Max 120 per 60s.
                data: null
      security:
        - AccessIdAuth: []
components:
  schemas:
    ExchangeRateResponse:
      type: object
      properties:
        status:
          type: string
          example: success
        message:
          type: string
          example: success
        data:
          type: object
          properties:
            coin:
              type: string
              example: bitcoin
            usd:
              type: number
              example: 82752
            rate:
              type: number
              nullable: true
              description: Price in `currency`; equals `usd` when no currency is given
              example: 127843151.04
            currency:
              type: string
              description: Resolved fiat code, lowercase
              example: ngn
    PaymentsErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
        data:
          nullable: true
          description: Usually `null` or `{}`
  securitySchemes:
    SignedAuth:
      type: apiKey
      in: header
      name: authorization
      description: >-
        Signed (HMAC) authentication. Required headers: x-access-id,
        x-request-id (UUID v4), x-timestamp (ISO 8601, must be within 5 minutes
        of server time), and authorization: the Base64 HMAC-SHA256 of the JSON
        string
        {"timeStamp":"<x-timestamp>","requestId":"<x-request-id>","accessId":"<x-access-id>"}
        (keys in that order, no whitespace) using your access secret. The
        request body, method and path are not signed. The API key must be linked
        to an outlet.
    AccessIdAuth:
      type: apiKey
      in: header
      name: x-access-id
      description: >-
        Basic (Access ID) authentication. Only the x-access-id header is
        required; no request signing.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.