List trades for integrators
curl --request GET \
--url https://api.numofx.com/v1/integrations/tradesimport requests
url = "https://api.numofx.com/v1/integrations/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/v1/integrations/trades', 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/trades",
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/trades"
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/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/v1/integrations/trades")
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>",
"trades": [
{
"trade_id": 123,
"price": "<string>",
"base_volume": "<string>",
"target_volume": "<string>",
"trade_timestamp": 123,
"type": "buy"
}
],
"next_before_trade_id": 123
}{
"error": "<string>"
}Integrations
List trades
Fills newest first, in the advertised pair orientation. On USDCcNGN-SPOT, price is cNGN per USDC, base_volume is USDC and target_volume is cNGN. 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.
GET
/
v1
/
integrations
/
trades
List trades for integrators
curl --request GET \
--url https://api.numofx.com/v1/integrations/tradesimport requests
url = "https://api.numofx.com/v1/integrations/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.numofx.com/v1/integrations/trades', 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/trades",
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/trades"
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/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.numofx.com/v1/integrations/trades")
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>",
"trades": [
{
"trade_id": 123,
"price": "<string>",
"base_volume": "<string>",
"target_volume": "<string>",
"trade_timestamp": 123,
"type": "buy"
}
],
"next_before_trade_id": 123
}{
"error": "<string>"
}Query Parameters
A ticker_id from GET /v1/integrations/tickers, such as USDCcNGN-SPOT.
Required range:
1 <= x <= 500The next_before_trade_id from the previous page, to page to older trades.
Required range:
x >= 1Was this page helpful?

