Get announcements (v2)
curl --request GET \
--url https://api.orderly.org/v2/public/announcementimport requests
url = "https://api.orderly.org/v2/public/announcement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v2/public/announcement', 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.orderly.org/v2/public/announcement",
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.orderly.org/v2/public/announcement"
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.orderly.org/v2/public/announcement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v2/public/announcement")
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{
"success": true,
"timestamp": 1789430400000,
"data": {
"last_updated_time": 1789426800000,
"rows": [
{
"announcement_id": 12345,
"message": "Community voting is now open.",
"url": "https://example.com/vote",
"i18n": {
"zh": "社群投票現已開放。",
"es": null,
"fr": null,
"jp": null,
"ko": null
},
"type": "VOTE",
"updated_time": 1789426800000
}
]
}
}System info
Get announcements (v2)
Limit: 10 requests per 1 second per IP address
GET /v2/public/announcement
Returns active platform announcements published by Orderly.
| Request | Specification |
|---|---|
| Method | GET |
| Path | /v2/public/announcement |
| Authentication | Public endpoint; no API key or signature required. |
| Query parameters | None. Pagination and broker, language, and type filters are not supported. |
| Request body | None. |
| Response format | application/json |
Read announcements from data.rows, which is empty when there are no active announcements. If a translation is missing, clients can fall back to message in its provided language.
message can contain text in any language. i18n supports only five fixed locales: zh, es, fr, jp, and ko. The Japanese key is jp.
data.last_updated_time is the latest announcement update time retrieved by the backend. It does not necessarily equal the maximum updated_time in the returned rows.
Example request (replace ${BASE_URL} with the API domain for your environment):
curl "${BASE_URL}/v2/public/announcement" \
-H 'Accept: application/json'
GET
/
v2
/
public
/
announcement
Get announcements (v2)
curl --request GET \
--url https://api.orderly.org/v2/public/announcementimport requests
url = "https://api.orderly.org/v2/public/announcement"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v2/public/announcement', 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.orderly.org/v2/public/announcement",
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.orderly.org/v2/public/announcement"
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.orderly.org/v2/public/announcement")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v2/public/announcement")
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{
"success": true,
"timestamp": 1789430400000,
"data": {
"last_updated_time": 1789426800000,
"rows": [
{
"announcement_id": 12345,
"message": "Community voting is now open.",
"url": "https://example.com/vote",
"i18n": {
"zh": "社群投票現已開放。",
"es": null,
"fr": null,
"jp": null,
"ko": null
},
"type": "VOTE",
"updated_time": 1789426800000
}
]
}
}