/public/convert

Get off-ramp conversion rates

Query Parameters
  • from
    Type: string
    required

    Currency to convert from

  • to
    Type: string
    required

    Currency to convert to

  • type
    Type: string
    required

    Conversion type (buy/sell)

  • amount
    Type: string
    required

    Amount to convert

  • widget_id
    Type: string
    required

    Widget id

  • is_total
    Type: boolean

    Is passed amount with fee.

  • payment_method
    Type: string

    Payment method. Available: card, volt, apple, google

  • address
    Type: string

    User wallet address. Available only if feature enabled for widget

  • ip_address
    Type: string

    User IP address. Feature must be enabled for widget.

  • card_type
    Type: string

    Card payment system. Feature must be enabled for widget. Note that parameter can be used only with ip_address

  • country
    Type: string

    User country. Feature must be enabled for widget. Note that ip_address takes precedence over country

Responses
  • application/json
  • application/json
  • 403

    Forbidden

  • 500

    Internal server error

Request Example for get/public/convert
curl 'https://sandbox-api.mrcr.io/v1.6/public/convert?from=&to=&type=&amount=&widget_id=&is_total=true&payment_method=&address=&ip_address=&card_type=&country='
{
  "status": 200,
  "data": {
    "type": "sell",
    "currency": "BTC",
    "amount": "0.00215648",
    "fiat_currency": "EUR",
    "fiat_amount": "100.00",
    "rate": "46371.86",
    "fee": "12.00",
    "fee_currency": "EUR"
  }
}