curl --request POST \
--url https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote \
--header 'Content-Type: application/json' \
--header 'X-RAMPNOW-API-KEY: <api-key>' \
--data '
{
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
'import requests
url = "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload = {
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
headers = {
"X-RAMPNOW-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-RAMPNOW-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dstChain: '<string>',
dstCurrency: '<string>',
srcChain: '<string>',
srcCurrency: '<string>',
dstAmount: '<string>',
partnerFixedFee: 123,
partnerPctFee: 123,
paymentMode: '<string>',
srcAmount: '<string>'
})
};
fetch('https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dstChain' => '<string>',
'dstCurrency' => '<string>',
'srcChain' => '<string>',
'srcCurrency' => '<string>',
'dstAmount' => '<string>',
'partnerFixedFee' => 123,
'partnerPctFee' => 123,
'paymentMode' => '<string>',
'srcAmount' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-RAMPNOW-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload := strings.NewReader("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-RAMPNOW-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
.header("X-RAMPNOW-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-RAMPNOW-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"dstAmount": "<string>",
"dstChain": "<string>",
"dstCurrency": "<string>",
"exchangeRate": "<string>",
"feeDetails": [
{
"currency": "<string>",
"fee": "<string>",
"isInclusive": true,
"type": "<string>",
"discount": {
"type": "<string>",
"value": "<string>"
},
"discountValue": "<string>",
"slippage": 123
}
],
"message": "<string>",
"orderType": "unknown",
"paymentMode": "<string>",
"srcAmount": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>"
},
"message": "<string>",
"traceId": "<string>",
"displayError": "<string>"
}Get a quote
curl --request POST \
--url https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote \
--header 'Content-Type: application/json' \
--header 'X-RAMPNOW-API-KEY: <api-key>' \
--data '
{
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
'import requests
url = "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload = {
"dstChain": "<string>",
"dstCurrency": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>",
"dstAmount": "<string>",
"partnerFixedFee": 123,
"partnerPctFee": 123,
"paymentMode": "<string>",
"srcAmount": "<string>"
}
headers = {
"X-RAMPNOW-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-RAMPNOW-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dstChain: '<string>',
dstCurrency: '<string>',
srcChain: '<string>',
srcCurrency: '<string>',
dstAmount: '<string>',
partnerFixedFee: 123,
partnerPctFee: 123,
paymentMode: '<string>',
srcAmount: '<string>'
})
};
fetch('https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dstChain' => '<string>',
'dstCurrency' => '<string>',
'srcChain' => '<string>',
'srcCurrency' => '<string>',
'dstAmount' => '<string>',
'partnerFixedFee' => 123,
'partnerPctFee' => 123,
'paymentMode' => '<string>',
'srcAmount' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-RAMPNOW-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote"
payload := strings.NewReader("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-RAMPNOW-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
.header("X-RAMPNOW-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rampnow.io/api/partner/v1/ext/ramp_order/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-RAMPNOW-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dstChain\": \"<string>\",\n \"dstCurrency\": \"<string>\",\n \"srcChain\": \"<string>\",\n \"srcCurrency\": \"<string>\",\n \"dstAmount\": \"<string>\",\n \"partnerFixedFee\": 123,\n \"partnerPctFee\": 123,\n \"paymentMode\": \"<string>\",\n \"srcAmount\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"code": 123,
"data": {
"dstAmount": "<string>",
"dstChain": "<string>",
"dstCurrency": "<string>",
"exchangeRate": "<string>",
"feeDetails": [
{
"currency": "<string>",
"fee": "<string>",
"isInclusive": true,
"type": "<string>",
"discount": {
"type": "<string>",
"value": "<string>"
},
"discountValue": "<string>",
"slippage": 123
}
],
"message": "<string>",
"orderType": "unknown",
"paymentMode": "<string>",
"srcAmount": "<string>",
"srcChain": "<string>",
"srcCurrency": "<string>"
},
"message": "<string>",
"traceId": "<string>",
"displayError": "<string>"
}Authorizations
Body
GetRampOrderQuoteRequest asks for a non-binding price quote for a ramp order. Supply exactly one
of srcAmount / dstAmount — the other side is computed.
Destination chain (fiat for fiat legs)
Supported Blockchains like ethereum, bitcoin etc. For additional options, see the full list.
Destination currency
Supported Crypto Currencies like EUR, USDT etc. For additional options, see the full list.
Source chain (fiat for fiat legs)
Supported Blockchains like ethereum, bitcoin etc. For additional options, see the full list.
Source currency
Supported Crypto Currencies like EUR, USDT etc. For additional options, see the full list.
Preferred payment method — quote may differ across modes
Payment Methods & Limits like sepa, card, wire etc. For additional options, see the full list.
Response
OK
Was this page helpful?