Reference rates
curl --request GET \
--url https://relay-production-f175.up.railway.app/v1/ratesimport requests
url = "https://relay-production-f175.up.railway.app/v1/rates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://relay-production-f175.up.railway.app/v1/rates', 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://relay-production-f175.up.railway.app/v1/rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://relay-production-f175.up.railway.app/v1/rates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://relay-production-f175.up.railway.app/v1/rates")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay-production-f175.up.railway.app/v1/rates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bands": [{ "base": "cNGN", "quote": "USDC", "mid": 1612.4, "low": 1598.1, "high": 1627.9, "sources": 5, "at": 1757750400123 }],
"sources": [
{ "name": "binance-p2p", "value": 1611.2, "bid": 1609.0, "ask": 1613.4, "ageSeconds": 4 },
{ "name": "bybit-p2p", "value": 1614.0, "bid": null, "ask": null, "ageSeconds": 6 }
],
"unavailable": []
}
Network
Reference rates
The oracle’s band for each corridor, and every source it is made of.
GET
/
v1
/
rates
Reference rates
curl --request GET \
--url https://relay-production-f175.up.railway.app/v1/ratesimport requests
url = "https://relay-production-f175.up.railway.app/v1/rates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://relay-production-f175.up.railway.app/v1/rates', 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://relay-production-f175.up.railway.app/v1/rates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://relay-production-f175.up.railway.app/v1/rates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://relay-production-f175.up.railway.app/v1/rates")
.asString();require 'uri'
require 'net/http'
url = URI("https://relay-production-f175.up.railway.app/v1/rates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"bands": [{ "base": "cNGN", "quote": "USDC", "mid": 1612.4, "low": 1598.1, "high": 1627.9, "sources": 5, "at": 1757750400123 }],
"sources": [
{ "name": "binance-p2p", "value": 1611.2, "bid": 1609.0, "ask": 1613.4, "ageSeconds": 4 },
{ "name": "bybit-p2p", "value": 1614.0, "bid": null, "ask": null, "ageSeconds": 6 }
],
"unavailable": []
}
The band is advisory. It is the median of public NGN/USD sources, recomputed every 10 seconds, published
to nodes as a sanity check and shown to takers next to each quote. It never sets a price.
object[]
{ base, quote, mid, low, high, sources, at } per corridor. mid, low and high are naira per dollar.
sources is how many sources made the band. at is unix milliseconds.object[]
Every source the oracle polls:
{ name, value, bid, ask, ageSeconds }. bid and ask are null for a
source that publishes one number.string[]
Sources that are failing right now.
{
"bands": [{ "base": "cNGN", "quote": "USDC", "mid": 1612.4, "low": 1598.1, "high": 1627.9, "sources": 5, "at": 1757750400123 }],
"sources": [
{ "name": "binance-p2p", "value": 1611.2, "bid": 1609.0, "ask": 1613.4, "ageSeconds": 4 },
{ "name": "bybit-p2p", "value": 1614.0, "bid": null, "ask": null, "ageSeconds": 6 }
],
"unavailable": []
}

