> For the complete documentation index, see [llms.txt](https://alfabit.gitbook.io/alfabit-exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alfabit.gitbook.io/alfabit-exchange/spisok-prinimaemykh-valyut.md).

# Список принимаемых валют

Эндпоинт предназначен для получения списка принимаемых валют

#### HTTP Request <a href="#http-request" id="http-request"></a>

`GET`

`https://alfabit.org/api/v1/cashe/currencies-test/`

#### Схема ответа <a href="#id-51c9aea103" id="id-51c9aea103"></a>

<table><thead><tr><th width="216.33333333333331">Параметр</th><th width="213">Тип поля</th><th>Описание</th></tr></thead><tbody><tr><td><strong>code</strong></td><td>str</td><td>Валюта</td></tr><tr><td><strong>currency_type</strong></td><td>str</td><td>Тип валюты. FIAT (фиатные валюты) COIN (криптовалюты) CASH (наличные)</td></tr><tr><td><strong>bestchange_code</strong></td><td>str</td><td>Общепринятный код валюты</td></tr><tr><td><strong>position_num_left</strong></td><td>int</td><td>Позиция в списке принимаемых от клиента валют для сортировки</td></tr><tr><td><strong>re</strong></td><td>str</td><td>Регулярное выражение для валюты</td></tr><tr><td><strong>exemple</strong></td><td>str</td><td>Пример адреса/номера кошелька</td></tr></tbody></table>

#### Пример ответа <a href="#id-51c9aea103" id="id-51c9aea103"></a>

{% tabs %}
{% tab title="Shell" %}

```
curl --location "https://alfabit.org/api/v1/cashe/currencies-test/"
```

Пример ответа:

```
[
    {
        "code": "TestCurrency",
        "currency_type": "FIAT",
        "bestchange_code": "TEST",
        "position_num_left": 1,
        "re": "^(7|38|77)\(?([0-9]{3})\)?[-.•]?([0-9]{3})[-.•]?([0-9]{4})$",
        "exemple": "79123456789"
    },
    {
        "code": "TestCurrency",
        "currency_type": "FIAT",
        "bestchange_code": "TEST",
        "position_num_left": 2,
        "re": "^\d{16}$",
        "exemple": "4444333322221111"
    },
    ...
]
```

{% endtab %}

{% tab title="Python" %}

```
import requests

url = "https://alfabit.org/api/v1/cashe/currencies-test/"

payload={}
headers = {}

response = requests.request("GET", url, headers=headers, data=payload)
```

Пример ответа:

```
[
    {
        "code": "TestCurrency",
        "currency_type": "FIAT",
        "bestchange_code": "TEST",
        "position_num_left": 1,
        "re": "^(7|38|77)\(?([0-9]{3})\)?[-.•]?([0-9]{3})[-.•]?([0-9]{4})$",
        "exemple": "79123456789"
    },
    {
        "code": "TestCurrency",
        "currency_type": "FIAT",
        "bestchange_code": "TEST",
        "position_num_left": 2,
        "re": "^\d{16}$",
        "exemple": "4444333322221111"
    },
    ...
]
```

{% endtab %}
{% endtabs %}
