cURL
curl --request GET \
--url https://gateway.architect.exchange/orders/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.architect.exchange/orders/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.architect.exchange/orders/orders', 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://gateway.architect.exchange/orders/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gateway.architect.exchange/orders/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.architect.exchange/orders/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.architect.exchange/orders/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"tn": 1,
"ts": 123,
"aid": "<string>",
"d": "B",
"o": "PENDING",
"oid": "<string>",
"p": "<string>",
"q": 1,
"rq": 1,
"s": "<string>",
"tif": "GTC",
"u": "<string>",
"xq": 1,
"cid": 1,
"po": true,
"r": "CLOSE_ONLY",
"tag": "<string>",
"txt": "<string>"
}
],
"limit": 1,
"next_cursor": "<string>",
"total_count": 1
}{
"error": "<string>"
}Order entry and management
Get historical orders
Returns historical orders for the authenticated user, newest first by default, paged via the response cursor. The time range is optional and unbounded; an inverted range (`end_timestamp_ns` <= `start_timestamp_ns`) is rejected with a 400. Optionally narrow the result to specific orders via `order_id` and/or `order_ids`. Pages may be returned partial.
GET
/
orders
cURL
curl --request GET \
--url https://gateway.architect.exchange/orders/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.architect.exchange/orders/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.architect.exchange/orders/orders', 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://gateway.architect.exchange/orders/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gateway.architect.exchange/orders/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.architect.exchange/orders/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.architect.exchange/orders/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"tn": 1,
"ts": 123,
"aid": "<string>",
"d": "B",
"o": "PENDING",
"oid": "<string>",
"p": "<string>",
"q": 1,
"rq": 1,
"s": "<string>",
"tif": "GTC",
"u": "<string>",
"xq": 1,
"cid": 1,
"po": true,
"r": "CLOSE_ONLY",
"tag": "<string>",
"txt": "<string>"
}
],
"limit": 1,
"next_cursor": "<string>",
"total_count": 1
}{
"error": "<string>"
}Authorizations
User session token
Query Parameters
Optional comma-separated order state filter, e.g. FILLED,CANCELED,REPLACED
Available options:
PENDING, ACCEPTED, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED, REPLACED, DONE_FOR_DAY, UNKNOWN Optional single order ID filter, e.g. ORD-1234567890. Convenience alias
for a one-element order_ids; combined with order_ids if both are set.
Optional comma-separated order ID filter, e.g. ORD-1,ORD-2. Combined
with order_id if both are set.
Optional account ID. If omitted, the user's default (primary) account is used.