Skip to content
Sign up

Convert

Get a Convert quote

What converting one asset or currency into another would give you right now, without doing it.

GET/api/v1/convert/quoteGet a key
curl --request GET \
  --url "https://reirex.com/api/v1/convert/quote?from=BTC&to=ETH&amount=0.01" \
  --header "GX-API-KEY: $GX_API_KEY" \
  --header "GX-API-TIMESTAMP: $TIMESTAMP" \
  --header "GX-API-SIGN: $SIGNATURE"

200 OKapplication/json

{
  "from": "BTC",
  "to": "ETH",
  "amount": "0.01000000",
  "receive": "0.29066952",
  "rate": "29.066952",
  "value": "727.66",
  "spread": "1.46",
  "currency": "EUR"
}

The spread sits inside rate and is the only charge; spread shows what it comes to in euro. Prices move, so a conversion made a moment later can give a little more or less.

Query parameters

  • fromstringrequired

    What you give, such as BTC or EUR.

  • tostringrequired

    What you get, such as ETH or USD.

  • amountstringrequired

    How much of from, as a decimal string.

Response

  • fromstring

    What you give.

  • tostring

    What you get.

  • amountstring

    How much of from goes.

  • receivestring

    How much of to arrives.

  • ratestring

    Units of to for one of from, spread included.

  • valuestring

    What amount is worth, in euro.

  • spreadstring

    The spread, the only charge, in euro.

  • currencystring

    The currency of value and spread: always EUR.