Get buy/sell quote (fiat leg)
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/crypto/quotes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"fromCurrency": "btc",
"fromAmount": 0.001,
"type": "BUY"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({fromCurrency: 'btc', fromAmount: 0.001, type: 'BUY'})
};
fetch('https://api.sendpadi.com/api/v1/merchant/crypto/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/crypto/quotes"
payload = {
"fromCurrency": "btc",
"fromAmount": 0.001,
"type": "BUY"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"from_amount": 0.001,
"to_amount": 95000,
"type": "BUY"
}
}Crypto
Get buy/sell quote (fiat leg)
Get a buy or sell quote against NGN. Scope: crypto:read.
POST
/
api
/
v1
/
merchant
/
crypto
/
quotes
Get buy/sell quote (fiat leg)
curl --request POST \
--url https://api.sendpadi.com/api/v1/merchant/crypto/quotes \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"fromCurrency": "btc",
"fromAmount": 0.001,
"type": "BUY"
}
'const options = {
method: 'POST',
headers: {
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Api-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({fromCurrency: 'btc', fromAmount: 0.001, type: 'BUY'})
};
fetch('https://api.sendpadi.com/api/v1/merchant/crypto/quotes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sendpadi.com/api/v1/merchant/crypto/quotes"
payload = {
"fromCurrency": "btc",
"fromAmount": 0.001,
"type": "BUY"
}
headers = {
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "OK",
"data": {
"from_amount": 0.001,
"to_amount": 95000,
"type": "BUY"
}
}This product may be disabled on your deployment. Contact support@sendpadi.com if calls return unavailable.
Authorizations
API key id (sp_test_… / sp_live_…)
Headers
Unix time in seconds
HMAC-SHA256 signature
Response
200 - application/json
OK
The response is of type object.

