Swapped.com Documentation
  • 🚀On-ramp Integration
    • ⚙️Sandbox Environment
    • 🔗iFrame initialization
      • 💬Order Notifications
      • 🚨Order Notification Retry Policy
      • 🪙Supported Cryptocurrencies
      • 💵Supported Fiat Currencies
      • 🗣️Supported languages
      • Onramp Aggregator Partners
    • 💳Test Credentials
    • 🎯Endpoints
      • 💳Get Payment Methods
      • 🟢Get Payment Status
      • 📘Get Transactions
      • 📈Get Current Price
      • ⚖️Get Minimum Amount
    • FAQ
  • 🚀Connect Integration
    • 🔗iFrame Initialization
    • 🤝Supported Connections
Powered by GitBook
On this page
  1. On-ramp Integration
  2. Endpoints

Get Current Price

PreviousGet TransactionsNextGet Minimum Amount

Last updated 1 month ago

All pricing information can be retrieved with a POST request.

URL:

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.

🚀
🎯
📈
Need help with your integration? Click here to chat with our custom GPT for instant answers.
https://widget.swapped.com/api/v1/merchant/pricing