Convert
Get a Convert quote
What converting one asset or currency into another would give you right now, without doing it.
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
fromstringrequiredWhat you give, such as
BTCorEUR.tostringrequiredWhat you get, such as
ETHorUSD.amountstringrequiredHow much of
from, as a decimal string.
Response
fromstringWhat you give.
tostringWhat you get.
amountstringHow much of
fromgoes.receivestringHow much of
toarrives.ratestringUnits of
tofor one offrom, spread included.valuestringWhat
amountis worth, in euro.spreadstringThe spread, the only charge, in euro.
currencystringThe currency of
valueandspread: alwaysEUR.

