Создание обмена

POST https://api.crystalpay.io/v3/swap/create/

Body

Name
Type
Description

auth_login*

string

Логин кассы

auth_secret*

string

Секретный ключ кассы

amount*

number

Сумма обмена

amount_type*

string

* - обязательные поля

Response

{
    "error": false,
    "errors": [],
    "id": "123456789_ukwlGvUvfP",
    "pair_id": 1,
    "amount_type": "source",
    "amount": "100",
    "source": {
        "method": "CARDRUBP2P",
        "currency": "RUB",
        "amount": "100"
    },
    "target": {
        "method": "USDTTRC",
        "currency": "USDT",
        "amount": "1.050058"
    },
    "price": "95.2328"
}

Last updated