curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/statusimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status', 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://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status",
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://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status"
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://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status")
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{
"frozen": true,
"reason": "<string>",
"since": "2023-11-07T05:31:56Z",
"activeNotices": [
"<string>"
],
"maintenance": {
"trading": {
"status": "operational",
"windowId": "<string>"
},
"withdrawals": {
"status": "operational",
"windowId": "<string>"
}
}
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Get platform status
Whether the platform-wide freeze is engaged, plus the ids of the notices currently in effect, in one call. Poll it to detect a freeze. While frozen is true, order placement (POST /api/orders/place, POST /api/orders/place-batch), POST /api/orders/cancel-all, gasless deposits, and withdrawal requests and cancellations are refused with 503 platform_frozen. POST /api/orders/cancel and POST /api/orders/cancel-batch keep working so you can pull resting orders, and read endpoints stay available. A freeze of withdrawals alone does not set frozen, which stays specific to the platform-wide freeze: the withdrawal endpoints answer 503 withdrawals_frozen, and when the maintenance object is present it shows as maintenance.withdrawals.status = maintenance with a null windowId. The maintenance object reports per-surface state, including a degraded reading taken from the same order-placement alert our own on-call acts on — see the Maintenance Notifications guide.
Public, no authentication, not cached. GET /api/platform/notices, /status, /contracts and /fee-config share one rate limit of 600 requests per minute per IP; GET /api/platform/maintenance is limited separately.
curl --request GET \
--url https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/statusimport requests
url = "https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status', 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://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status",
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://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status"
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://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://core.api.dev.predictstreet.sde.adifoundation.ai/api/platform/status")
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{
"frozen": true,
"reason": "<string>",
"since": "2023-11-07T05:31:56Z",
"activeNotices": [
"<string>"
],
"maintenance": {
"trading": {
"status": "operational",
"windowId": "<string>"
},
"withdrawals": {
"status": "operational",
"windowId": "<string>"
}
}
}{
"status": 404,
"error": {
"code": "<string>",
"message": "<string>",
"trace_id": "<string>",
"retryAfterSec": 123,
"retryable": true,
"details": {}
}
}Response
OK
true while the platform-wide freeze is engaged. See GET /api/platform/status for which calls it blocks.
Reason given for the freeze. null when not frozen.
ISO-8601 — when the freeze began. null when not frozen.
Ids of the notices currently in effect — the same notices GET /api/platform/notices returns.
Absent in an environment where the maintenance feature is switched off — treat a missing object as "no information", never as "everything is fine".
Show child attributes
Show child attributes