curl --request GET \
--url https://api.numofx.com/v1/integrations/orderbookimport requests
url = "https://api.numofx.com/v1/integrations/orderbook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/v1/integrations/orderbook', 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.numofx.com/v1/integrations/orderbook",
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://api.numofx.com/v1/integrations/orderbook"
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://api.numofx.com/v1/integrations/orderbook")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/v1/integrations/orderbook")
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{
"ticker_id": "<string>",
"timestamp": 123,
"bids": [
[
"<string>",
"<string>"
]
],
"asks": [
[
"<string>",
"<string>"
]
]
}{
"error": "<string>"
}Get orderbook
Resting orders aggregated into price levels in the advertised pair orientation. On USDCcNGN-SPOT, bids are orders buying USDC and asks are orders selling it, priced in cNGN per USDC with quantities in USDC. Bid prices round down and ask prices round up to 6 decimal places, and quantities round down, so no level shows a better price or more size than is resting. Responses are cached for up to 5 seconds and carry Cache-Control: public, max-age=5, so polling faster than that returns the same data.
curl --request GET \
--url https://api.numofx.com/v1/integrations/orderbookimport requests
url = "https://api.numofx.com/v1/integrations/orderbook"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/v1/integrations/orderbook', 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.numofx.com/v1/integrations/orderbook",
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://api.numofx.com/v1/integrations/orderbook"
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://api.numofx.com/v1/integrations/orderbook")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/v1/integrations/orderbook")
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{
"ticker_id": "<string>",
"timestamp": 123,
"bids": [
[
"<string>",
"<string>"
]
],
"asks": [
[
"<string>",
"<string>"
]
]
}{
"error": "<string>"
}Query Parameters
A ticker_id from GET /v1/integrations/tickers, such as USDCcNGN-SPOT. An unknown value is rejected rather than answered with another market.
Maximum price levels per side.
1 <= x <= 500Response
Aggregated levels, best first
Unix milliseconds at which the book was read.
Levels buying the base asset, highest price first. Empty array, never null, when there are none.
Show child attributes
Show child attributes
Levels selling the base asset, lowest price first. Empty array, never null, when there are none.
Show child attributes
Show child attributes
Was this page helpful?

