---
title: "Get currency"
description: "List every currency with its id and decimals."
---

| | |
|---|---|
| SDK | `client.get_currency(...)` |
| HTTP | `POST https://market-data.<domain>/full/v1/currency`, or `/lite/v1/currency` for [lite names](../../guides/environments.md#encoding-full-or-lite) (the SDKs' default) |
| WebSocket | method `v1/currency` on `wss://market-data.<domain>/ws/full`, or `/ws/lite` for lite names |
| Auth | None (public) |
| Retries | Read: the SDKs retry retryable errors ([rules](../../guides/errors-and-retries.md)) |
| Contract id | `instrument.get_currency` (`RPCGetCurrencyV1`) |

## Request

Body type `ApiGetCurrencyRequest`. Fields the server fills are left out.

No fields.

## Response

Body type `ApiGetCurrencyResponse` (the same object is the JSON-RPC `result` over WebSocket).

- `result` · lite `r` · object CurrencyDetail[] · required — The list of currencies
- `result[].id` · lite `i` · integer (uint16) · required — The integer value of the currency
- `result[].symbol` · lite `s` · string · required — The name of the currency
- `result[].balance_decimals` · lite `bd` · integer (int8) · required — The balance decimals of the currency
- `result[].quantity_multiplier` · lite `qm` · string (uint64) · required — The quantity multiplier of the currency

## Errors

Errors come back as `{"code", "message", "status"}` (lite `{"c", "m", "s"}`) with the HTTP status. Codes this call can return, as code, name (HTTP status) ([all error codes](../errors.md)):

`1002` InternalServer (500) · `1003` InvalidRequest (400) · `1004` NotFound (404) · `1006` RateLimit (429, retryable)

## Example

```python
from grvt import Grvt

with Grvt(env="testnet") as client:
    resp = client.get_currency()
    print(resp)
```

Raw HTTP (set `GRVT_DOMAIN`, see [Environments](../../guides/environments.md)):

With full field names:

```sh
curl -sS "https://market-data.$GRVT_DOMAIN/full/v1/currency" \
  -H "Content-Type: application/json" \
  --data '{}'
```

With lite field names:

```sh
curl -sS "https://market-data.$GRVT_DOMAIN/lite/v1/currency" \
  -H "Content-Type: application/json" \
  --data '{}'
```
