curl --request GET \
--url https://api.vitawallet.io/api/businesses/crypto_prices \
--header 'Authorization: <api-key>' \
--header 'x-date: <api-key>' \
--header 'x-login: <api-key>' \
--header 'x-trans-key: <api-key>'import requests
url = "https://api.vitawallet.io/api/businesses/crypto_prices"
headers = {
"x-login": "<api-key>",
"x-trans-key": "<api-key>",
"x-date": "<api-key>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-login': '<api-key>',
'x-trans-key': '<api-key>',
'x-date': '<api-key>',
Authorization: '<api-key>'
}
};
fetch('https://api.vitawallet.io/api/businesses/crypto_prices', 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.vitawallet.io/api/businesses/crypto_prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"x-date: <api-key>",
"x-login: <api-key>",
"x-trans-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"
"net/http"
"io"
)
func main() {
url := "https://api.vitawallet.io/api/businesses/crypto_prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-login", "<api-key>")
req.Header.Add("x-trans-key", "<api-key>")
req.Header.Add("x-date", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vitawallet.io/api/businesses/crypto_prices")
.header("x-login", "<api-key>")
.header("x-trans-key", "<api-key>")
.header("x-date", "<api-key>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vitawallet.io/api/businesses/crypto_prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-login"] = '<api-key>'
request["x-trans-key"] = '<api-key>'
request["x-date"] = '<api-key>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"prices": {
"clp": {
"usdc": 0.001049758556,
"usdc_sell": 0.0009447827,
"btc": 1.3776e-8,
"btc_sell": 1.2398e-8,
"usdt": 0.001049905543,
"usdt_sell": 0.000839924434
},
"usd": {
"usdc": 1,
"usdc_sell": 1,
"btc": 0.000013122685,
"btc_sell": 0.000012991458,
"usdt": 1,
"usdt_sell": 0.9965
},
"usdc": {
"clp": 952.599999575521,
"clp_sell": 762.079999660416,
"usd": 1,
"usd_sell": 1,
"btc": 0.000013122685,
"btc_sell": 0.000012991458,
"usdt": 1.000140019602,
"usdt_sell": 1.000140019602
},
"btc": {
"clp": 72590011.61440186,
"clp_sell": 58072009.29152149,
"usd": 76203.9171099512,
"usd_sell": 76203.9171099512,
"usdc": 76240.31557391422,
"usdc_sell": 76240.31557391422,
"usdt": 76250.99071261399,
"usdt_sell": 76250.99071261399
},
"usdt": {
"clp": 952.466635372359,
"clp_sell": 857.219971835123,
"usd": 1,
"usd_sell": 0.9965,
"usdc": 1,
"usdc_sell": 0.8,
"btc": 0.000013122685,
"btc_sell": 0.000013122685
}
},
"valid_until": "2026-04-28T18:33:53.667Z"
}List crypto prices
This endpoint returns Vita Business’s current crypto exchange rates, which you’ll use to calculate the final amount of any exchange transaction.
Response Structure
| Field | Description |
|---|---|
valid_until | Timestamp indicating when the returned prices expire. After this time, you must request prices again. |
prices | Object containing your active currencies and their corresponding exchange rates against all available cryptocurrencies. |
_sell | Sell rate for the destination currency. Indicates how many units of you receive per 1 unit of the source currency. |
Understanding coin_sell
The _sell value represents the current exchange rate from the source currency to the destination currency.
Example:
{
"usd": {
"usdt_sell": 0.995
}
}
In this case, 1 USD = 0.995 USDT. For every 1 USD sent, the wallet will receive 0.995 USDT.
Calculating the Final Amount
To calculate how much the destination wallet will receive, multiply the amount you want to send by the _sell rate, where matches the currency you’ll receive (currency_received).
Formula:
final_amount = amount_sent × <currency_received>_sell
JavaScript example
const finalAmount = amountSent * prices[currencySent][`${currencyReceived}_sell`];
// Example: Exchange 100 USD to USDT
// prices.usd.usdt_sell = 0.995
const finalAmount = 100 * 0.995; // 99.5 USDT
Reminder: Always verify the
valid_untiltimestamp before using a rate. If the price has expired, request/crypto_pricesagain before creating the exchange.
curl --request GET \
--url https://api.vitawallet.io/api/businesses/crypto_prices \
--header 'Authorization: <api-key>' \
--header 'x-date: <api-key>' \
--header 'x-login: <api-key>' \
--header 'x-trans-key: <api-key>'import requests
url = "https://api.vitawallet.io/api/businesses/crypto_prices"
headers = {
"x-login": "<api-key>",
"x-trans-key": "<api-key>",
"x-date": "<api-key>",
"Authorization": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'x-login': '<api-key>',
'x-trans-key': '<api-key>',
'x-date': '<api-key>',
Authorization: '<api-key>'
}
};
fetch('https://api.vitawallet.io/api/businesses/crypto_prices', 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.vitawallet.io/api/businesses/crypto_prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"x-date: <api-key>",
"x-login: <api-key>",
"x-trans-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"
"net/http"
"io"
)
func main() {
url := "https://api.vitawallet.io/api/businesses/crypto_prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-login", "<api-key>")
req.Header.Add("x-trans-key", "<api-key>")
req.Header.Add("x-date", "<api-key>")
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vitawallet.io/api/businesses/crypto_prices")
.header("x-login", "<api-key>")
.header("x-trans-key", "<api-key>")
.header("x-date", "<api-key>")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vitawallet.io/api/businesses/crypto_prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-login"] = '<api-key>'
request["x-trans-key"] = '<api-key>'
request["x-date"] = '<api-key>'
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"prices": {
"clp": {
"usdc": 0.001049758556,
"usdc_sell": 0.0009447827,
"btc": 1.3776e-8,
"btc_sell": 1.2398e-8,
"usdt": 0.001049905543,
"usdt_sell": 0.000839924434
},
"usd": {
"usdc": 1,
"usdc_sell": 1,
"btc": 0.000013122685,
"btc_sell": 0.000012991458,
"usdt": 1,
"usdt_sell": 0.9965
},
"usdc": {
"clp": 952.599999575521,
"clp_sell": 762.079999660416,
"usd": 1,
"usd_sell": 1,
"btc": 0.000013122685,
"btc_sell": 0.000012991458,
"usdt": 1.000140019602,
"usdt_sell": 1.000140019602
},
"btc": {
"clp": 72590011.61440186,
"clp_sell": 58072009.29152149,
"usd": 76203.9171099512,
"usd_sell": 76203.9171099512,
"usdc": 76240.31557391422,
"usdc_sell": 76240.31557391422,
"usdt": 76250.99071261399,
"usdt_sell": 76250.99071261399
},
"usdt": {
"clp": 952.466635372359,
"clp_sell": 857.219971835123,
"usd": 1,
"usd_sell": 0.9965,
"usdc": 1,
"usdc_sell": 0.8,
"btc": 0.000013122685,
"btc_sell": 0.000013122685
}
},
"valid_until": "2026-04-28T18:33:53.667Z"
}Authorizations
Business xLogin
Business xTransKey
ISO8601 datetime
V2-HMAC-SHA256 signature. Example: V2-HMAC-SHA256, Signature: <hash>
Response
Successful response.