Quote buy order

Endpoint for getting crypto buy order quote

Get buy order quote

POST https://papi.swapin.com/api/buy/quote

Request Body

Name
Type
Description

to_coin*

String

Coin symbol

from_amount*

Decimal

Total sum of payment in EUR

from_currency*

String

Fiat currency (EUR)

{
    "ok": true,
    "exchange_order": {
        "from_coin": "ESCT",
        "from_currency": "EUR",
        "from_amount": 93.05,
        "from_amount_indicative": 93.05,
        "to_coin": "BTC",
        "to_coin_network": "bitcoin-testnet",
        "to_currency": null,
        "to_coin_address": "tb1qdrt9ujukcm6rn7x9h9suwl49ya9vv0a3d9wnf5",
        "to_amount": null,
        "to_amount_indicative": 0.00078017,
        "rate_target": null,
        "rate_indicative": 103245.86,
        "fee_amount": 2.5,
        "fee_coin": "ESCT",
        "network_fee_amount": 10,
        "network_fee_coin": "ESCT",
        "partner_markup_eur": 0,
        "fees_info": {
            "start_eur": 0,
            "fee_eur": null,
            "fee_percent": "1.350",
            "fee_min_eur": "2.50"
        }
    }
}

Last updated