Get Current Price
All pricing information can be retrieved with a POST request.
URL: https://widget.swapped.com/api/v1/merchant/pricing
Request Data:
Response:
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