Get the health of the Trading API
curl --request GET \
--url https://api.apexiumbet.com/v1/healthimport requests
url = "https://api.apexiumbet.com/v1/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.apexiumbet.com/v1/health', 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.apexiumbet.com/v1/health",
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.apexiumbet.com/v1/health"
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.apexiumbet.com/v1/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apexiumbet.com/v1/health")
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{
"status": "healthy",
"time": "2023-11-07T05:31:56Z",
"services": {
"database": "healthy",
"caching": "healthy",
"betPlacement": "healthy",
"betUpdates": "healthy"
}
}{
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}{
"status": "healthy",
"time": "2023-11-07T05:31:56Z",
"services": {
"database": "healthy",
"caching": "healthy",
"betPlacement": "healthy",
"betUpdates": "healthy"
}
}Health
Get the health of the Trading API
No API key needed. 200 while healthy or degraded, 503 when unhealthy or when the API is switched off. Refreshed at most every 15 seconds.
GET
/
v1
/
health
Get the health of the Trading API
curl --request GET \
--url https://api.apexiumbet.com/v1/healthimport requests
url = "https://api.apexiumbet.com/v1/health"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.apexiumbet.com/v1/health', 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.apexiumbet.com/v1/health",
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.apexiumbet.com/v1/health"
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.apexiumbet.com/v1/health")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.apexiumbet.com/v1/health")
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{
"status": "healthy",
"time": "2023-11-07T05:31:56Z",
"services": {
"database": "healthy",
"caching": "healthy",
"betPlacement": "healthy",
"betUpdates": "healthy"
}
}{
"code": "VALIDATION_FAILED",
"message": "<string>",
"details": "<unknown>"
}{
"status": "healthy",
"time": "2023-11-07T05:31:56Z",
"services": {
"database": "healthy",
"caching": "healthy",
"betPlacement": "healthy",
"betUpdates": "healthy"
}
}