Get list of campaigns
curl --request GET \
--url https://api.orderly.org/v1/public/campaignsimport requests
url = "https://api.orderly.org/v1/public/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/campaigns', 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/v1/public/campaigns",
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/v1/public/campaigns"
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/v1/public/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/campaigns")
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": 1702989203989,
"data": {
"rows": [
{
"id": 1,
"name": "campaign_20230806",
"start_time": 1575014255089,
"end_time": 1585014255089,
"signup_start_time": 1585014255089,
"signup_end_time": 1585014255089,
"register_time": 1585014255089
}
]
}
}Trading campaigns
Get list of campaigns
Limit: 10 requests per 1 second per IP address
GET /v1/public/campaigns
GET
/
v1
/
public
/
campaigns
Get list of campaigns
curl --request GET \
--url https://api.orderly.org/v1/public/campaignsimport requests
url = "https://api.orderly.org/v1/public/campaigns"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/campaigns', 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/v1/public/campaigns",
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/v1/public/campaigns"
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/v1/public/campaigns")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/campaigns")
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": 1702989203989,
"data": {
"rows": [
{
"id": 1,
"name": "campaign_20230806",
"start_time": 1575014255089,
"end_time": 1585014255089,
"signup_start_time": 1585014255089,
"signup_end_time": 1585014255089,
"register_time": 1585014255089
}
]
}
}Query Parameters
Filter the list that this address has participated in.
⌘I