Get one order tag for a broker
curl --request GET \
--url https://api.orderly.org/v1/public/broker/order_enumimport requests
url = "https://api.orderly.org/v1/public/broker/order_enum"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/broker/order_enum', 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/broker/order_enum",
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/broker/order_enum"
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/broker/order_enum")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/broker/order_enum")
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": {
"enum_id": "GRID_PRO",
"name": "Grid Pro",
"description": "Grid strategy orders",
"status": "active",
"default_fee_rate": 0.005,
"pair_overrides": {
"PERP_BTC_USDC": 0.003
},
"created_time": 1710300000000,
"updated_time": 1710300000000
}
}Order management
Get one order tag for a broker
GET /v1/public/broker/order_enum?broker_id={broker_id}&enum_id={enum_id}
Get one custom trading fee configuration owned by broker_id. The response does not include usage statistics.
The returned enum_id is unprefixed. To submit a new enum-tagged order, construct enum:<broker_id>:<enum_id>.
GET
/
v1
/
public
/
broker
/
order_enum
Get one order tag for a broker
curl --request GET \
--url https://api.orderly.org/v1/public/broker/order_enumimport requests
url = "https://api.orderly.org/v1/public/broker/order_enum"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.orderly.org/v1/public/broker/order_enum', 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/broker/order_enum",
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/broker/order_enum"
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/broker/order_enum")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orderly.org/v1/public/broker/order_enum")
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": {
"enum_id": "GRID_PRO",
"name": "Grid Pro",
"description": "Grid strategy orders",
"status": "active",
"default_fee_rate": 0.005,
"pair_overrides": {
"PERP_BTC_USDC": 0.003
},
"created_time": 1710300000000,
"updated_time": 1710300000000
}
}Query Parameters
Broker that owns the enum configuration
Required string length:
1 - 64Pattern:
^[^:]+$Unprefixed enum ID
Required string length:
1 - 36Pattern:
^[A-Z0-9_]+$