# Get precision for a currency

`GET https://api.cryptohopper.com/v1/exchange/{exchange}/currency/{currency}/decimals`

Part of [Exchanges](https://www.cryptohopper.com/api-documentation/api-reference/exchanges.md) in the Cryptohopper API reference.

Returns the number of decimals Cryptohopper uses for one currency on an exchange.

OAuth scope: `read`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `exchange` | string | yes | Exchange key as returned by Get available exchanges, for example binance or kucoin. Case insensitive. |
| `currency` | string | yes | Currency code, for example BTC. Case insensitive. |

## Example request

```bash
curl "https://api.cryptohopper.com/v1/exchange/EXCHANGE/currency/CURRENCY/decimals" \
  -H "access-token: YOUR_ACCESS_TOKEN"
```

## Response

Example response (illustrative values):

```json
{
    "data": {
        "BTC": "8"
    }
}
```

Status codes: 200. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
