Get Exchange Rate
curl --request GET \
--url http://localhost:3050/api/v1/business/open/misc/exchange-rate \
--header 'authorization: <api-key>'import requests
url = "http://localhost:3050/api/v1/business/open/misc/exchange-rate"
headers = {"authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<api-key>'}};
fetch('http://localhost:3050/api/v1/business/open/misc/exchange-rate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3050",
CURLOPT_URL => "http://localhost:3050/api/v1/business/open/misc/exchange-rate",
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>"
],
]);
$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 := "http://localhost:3050/api/v1/business/open/misc/exchange-rate"
req, _ := http.NewRequest("GET", url, nil)
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("http://localhost:3050/api/v1/business/open/misc/exchange-rate")
.header("authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3050/api/v1/business/open/misc/exchange-rate")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Exchange rate retrieved successfully",
"data": {
"query": {
"from": "USD",
"to": "NGN",
"amount": 1
},
"info": {
"timestamp": 1768544337122,
"date": "2026-01-16T06:18:57.122Z",
"rate": 1440
},
"result": 1440
}
}Miscellaneous
Get Exchange Rate
Gets the exchange rate between two currencies.
GET
/
api
/
v1
/
business
/
open
/
misc
/
exchange-rate
Get Exchange Rate
curl --request GET \
--url http://localhost:3050/api/v1/business/open/misc/exchange-rate \
--header 'authorization: <api-key>'import requests
url = "http://localhost:3050/api/v1/business/open/misc/exchange-rate"
headers = {"authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {authorization: '<api-key>'}};
fetch('http://localhost:3050/api/v1/business/open/misc/exchange-rate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3050",
CURLOPT_URL => "http://localhost:3050/api/v1/business/open/misc/exchange-rate",
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>"
],
]);
$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 := "http://localhost:3050/api/v1/business/open/misc/exchange-rate"
req, _ := http.NewRequest("GET", url, nil)
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("http://localhost:3050/api/v1/business/open/misc/exchange-rate")
.header("authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3050/api/v1/business/open/misc/exchange-rate")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Exchange rate retrieved successfully",
"data": {
"query": {
"from": "USD",
"to": "NGN",
"amount": 1
},
"info": {
"timestamp": 1768544337122,
"date": "2026-01-16T06:18:57.122Z",
"rate": 1440
},
"result": 1440
}
}Authorizations
Query Parameters
Available options:
usd, eur, gbp Available options:
ngn, ghs, kes, zar, tzs, ugx, xof, rwf, zmw, xaf, gmd, lrd, mwk, etb, egp, sle Required range:
x >= 1Response
200 - application/json
Exchange rate retrieved successfully

