// Requires an authenticated client.
let order = client
.order("0x0011223344556677889900aabbccddeeff00112233445566778899aabbccddee")
.await?;
println!("status: {:?}", order.status);
curl --request GET \
--url https://orderbooks.xo.market/data/order/{id} \
--header 'XO_API_KEY: <api-key>'import requests
url = "https://orderbooks.xo.market/data/order/{id}"
headers = {"XO_API_KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {XO_API_KEY: '<api-key>'}};
fetch('https://orderbooks.xo.market/data/order/{id}', 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://orderbooks.xo.market/data/order/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"XO_API_KEY: <api-key>"
],
]);
$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://orderbooks.xo.market/data/order/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("XO_API_KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://orderbooks.xo.market/data/order/{id}")
.header("XO_API_KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://orderbooks.xo.market/data/order/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["XO_API_KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "101",
"market": "0x39a12d52b63969654926e095ddd96f5c459112714da03edca769aa58173c78fb",
"asset_id": "26516164265702901957933644848127860370782874751279270726689263951695181556943",
"outcome": "Yes",
"side": "BUY",
"price": "0.547",
"original_size": "100000000",
"size_matched": "15000000",
"status": "live",
"created_at": 1779355800,
"order_hash": "0x0011223344556677889900aabbccddeeff00112233445566778899aabbccddee",
"maker_address": "0xCAFE000000000000000000000000000000000A11",
"owner": "346629a1-8226-5a85-823f-3a25ae818e10",
"expiration": "0",
"order_type": "GTC"
}Get single order by ID
Get a single order by id.
// Requires an authenticated client.
let order = client
.order("0x0011223344556677889900aabbccddeeff00112233445566778899aabbccddee")
.await?;
println!("status: {:?}", order.status);
curl --request GET \
--url https://orderbooks.xo.market/data/order/{id} \
--header 'XO_API_KEY: <api-key>'import requests
url = "https://orderbooks.xo.market/data/order/{id}"
headers = {"XO_API_KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {XO_API_KEY: '<api-key>'}};
fetch('https://orderbooks.xo.market/data/order/{id}', 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://orderbooks.xo.market/data/order/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"XO_API_KEY: <api-key>"
],
]);
$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://orderbooks.xo.market/data/order/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("XO_API_KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://orderbooks.xo.market/data/order/{id}")
.header("XO_API_KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://orderbooks.xo.market/data/order/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["XO_API_KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "101",
"market": "0x39a12d52b63969654926e095ddd96f5c459112714da03edca769aa58173c78fb",
"asset_id": "26516164265702901957933644848127860370782874751279270726689263951695181556943",
"outcome": "Yes",
"side": "BUY",
"price": "0.547",
"original_size": "100000000",
"size_matched": "15000000",
"status": "live",
"created_at": 1779355800,
"order_hash": "0x0011223344556677889900aabbccddeeff00112233445566778899aabbccddee",
"maker_address": "0xCAFE000000000000000000000000000000000A11",
"owner": "346629a1-8226-5a85-823f-3a25ae818e10",
"expiration": "0",
"order_type": "GTC"
}Authorizations
L2 HMAC request signature. See Authentication.
Path Parameters
Response
OK
Numeric order id, serialised as a string for SDK
compatibility (py-clob-client reads id as str).
conditionId
Decimal U256 token id (the canonical CLOB asset_id).
Empty string when the gateway has no MarketInfo registered
for the order's market.
Yes, No BUY, SELL Trimmed decimal (signed-order price).
Signed makerAmount/takerAmount converted to human shares.
Cumulative fills so far, human shares.
live, delayed Unix seconds, bare integer (NOT stringified).
0x-prefixed keccak256 of the EIP-712 typed-data digest.
Wallet address (0x-prefixed hex) that placed the order.
UUIDv5 of the authenticated owner (deterministic from
maker_address via XO_WALLET_OWNER_NAMESPACE). Stable across
sessions — integrators can pre-compute the mapping.
Unix seconds as decimal string. "0" = no expiry (GTC).
GTC, GTD, FOK, FAK