/b2b/oor/sell-rates
Get rates for off-ramp transaction
Query Parameters
- Type: stringfromrequired
Cryptocurrency code for sale
- Type: stringtorequired
Fiat currency code for buy
- Type: stringamount
_from The total amount of cryptocurrency for sale, including fees, required if 'amount_to' empty
- Type: stringamount
_to The total amount, including fees, to be received in fiat currency, required if 'amount_from' empty
- Type: stringnetwork
Cryptocurrency network, if empty default used (default and allowed networks described in /b2b/currencies)
- enumpayment
_alias const:cardPayment method alias
values- card
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for get/b2b/oor/sell-rates
curl 'https://sandbox-api.mrcr.io/v1.6/b2b/oor/sell-rates?from=&to=' \
--header 'B2B-Bearer-Token: YOUR_SECRET_TOKEN'
{
"status": 200,
"data": [
{
"trx_token": "4ae0bdd7f4ea2f9ac1f54a6ca21685f324d11479f9040305dec90899f4dbe154eyJ0IjoxNjU4OTk4NDI0LCJjIjoiQlRDIiwiYSI6IjAuMDIwMDAwMDAiLCJmYyI6IkVVUiIsImZhIjoiNDMyLjUwIiwiZiI6IjE3LjA5IiwiciI6IjIyNDc4LjcwMDAwMDAwMDAiLCJjaWQiOiJlZWI5MTVkNDRjNzU0YjdkYzhiNGI1NDkxMTY5ZGU5NiIsIm9wIjoic2VsbCIsInB0IjpudWxsLCJwYSI6ImNhcmQiLCJ0dCI6dHJ1ZSwidGYiOiIwIiwidyI6ImRjMDNmYjUyLWEwNTgtNDhlMS1hMjJmLWMyYjA3NDRkNmU4MiIsInNmIjoiMTcuMDkifQ==",
"currency": "BTC",
"amount": "0.02000000",
"fiat_amount": "432.50",
"fiat_currency": "EUR",
"rate": "22478.7000000000",
"fee": {
"BTC": "0.00075999",
"EUR": "17.09"
},
"subtotal": {
"BTC": "0.01924001",
"EUR": "432.50"
},
"total": {
"BTC": "0.02000000",
"EUR": "449.59"
}
}
]
}