📈Get Current Price

Need help with your integration? Click here to chat with our custom GPT for instant answers.

All pricing information can be retrieved with a POST request.

URL: https://widget.swapped.com/api/v1/merchant/pricing

Request Data:

{
    "apiKey": "",
    "payment_method": "creditcard",
    "fiat_currency": "EUR",
    "fiat_amount": 100,
    "crypto_currency": "LTC",
    "crypto_amount": 1
}

Response:

{
    "success": true,
    "data": {
        "crypto_amount": 1.716,
        "crypto_currency": "LTC",
        "crypto_unit_price": 57.05,
        "network_fee": 0,
        "fiat_amount_incl_fees": 100,
        "fiat_amount_excl_fees": 97.9,
        "fiat_currency": "EUR"
    }
}

Request Definition:

  • apiKey: Your public key. This is used to identify which merchant is making the request.

  • payment_method: The payment method you want to query. Method names can be retrieved with a GET request to the payment methods endpoint.

  • fiat_currency: The fiat currency you want to query.

  • fiat_amount: The fiat amount you want to convert.

  • crypto_currency: The cryptocurrency you want to convert to.

  • crypto_amount: The cryptocurrency amount you want to convert to.

Note: The crypto_amount and fiat_amount fields are optional. If you only provide one of them, the other will be calculated based on the current exchange rate.

Last updated