curl --request GET \
--url https://apimonaco.xyz/api/v1/compliance/regionimport requests
url = "https://apimonaco.xyz/api/v1/compliance/region"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apimonaco.xyz/api/v1/compliance/region', 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://apimonaco.xyz/api/v1/compliance/region",
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://apimonaco.xyz/api/v1/compliance/region"
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://apimonaco.xyz/api/v1/compliance/region")
.asString();require 'uri'
require 'net/http'
url = URI("https://apimonaco.xyz/api/v1/compliance/region")
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{
"restricted": false,
"country": "JP"
}Get the caller's region status
Get the caller’s region status.
Reports whether trading is available in the caller’s region, so a frontend can show a region notice and hide trading instead of failing on the next write. Public endpoint — no authentication required — and always answers 200, from every region.
A caller from a restricted region keeps every read (market data, balances, positions, orders, withdrawal lists), the WebSocket API, signing in (POST /api/v1/auth/challenge, /verify, /refresh, /revoke) and withdrawing (POST /api/v1/withdrawals). Every other write — placing, replacing or cancelling orders, closing positions, deposits, transfers and account changes — is refused with 451 REGION_RESTRICTED (gRPC: PERMISSION_DENIED with a google.rpc.ErrorInfo reason REGION_RESTRICTED).
curl --request GET \
--url https://apimonaco.xyz/api/v1/compliance/regionimport requests
url = "https://apimonaco.xyz/api/v1/compliance/region"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://apimonaco.xyz/api/v1/compliance/region', 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://apimonaco.xyz/api/v1/compliance/region",
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://apimonaco.xyz/api/v1/compliance/region"
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://apimonaco.xyz/api/v1/compliance/region")
.asString();require 'uri'
require 'net/http'
url = URI("https://apimonaco.xyz/api/v1/compliance/region")
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{
"restricted": false,
"country": "JP"
}Response
OK
True when trading is not available in the caller's region; writes other than signing in and withdrawing then answer 451 REGION_RESTRICTED
false
The caller's ISO 3166-1 alpha-2 country code as the edge geolocated it (T1 for Tor, XX for unknown); empty when the request carried no location
"JP"
Was this page helpful?

