Skip to main content
GET
/
v2
/
tokenized_assets
/
order
/
{order_hash}
Python (SDK)
from compass_api_sdk import CompassAPI


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.tokenized_assets.tokenized_assets_order_order_hash_(order_hash="<value>")

    # Handle response
    print(res)
import { CompassApiSDK } from "@compass-labs/api-sdk";

const compassApiSDK = new CompassApiSDK({
  apiKeyAuth: "<YOUR_API_KEY_HERE>",
});

async function run() {
  const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsOrderOrderHash({
    orderHash: "<value>",
  });

  console.log(result);
}

run();
curl --request GET \
  --url https://api.compasslabs.ai/v2/tokenized_assets/order/{order_hash} \
  --header 'x-api-key: <api-key>'
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};

fetch('https://api.compasslabs.ai/v2/tokenized_assets/order/{order_hash}', 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.compasslabs.ai/v2/tokenized_assets/order/{order_hash}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "x-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://api.compasslabs.ai/v2/tokenized_assets/order/{order_hash}"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("x-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://api.compasslabs.ai/v2/tokenized_assets/order/{order_hash}")
  .header("x-api-key", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.compasslabs.ai/v2/tokenized_assets/order/{order_hash}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "fill_price_usd": "354.92",
  "fill_tx_hash": "0x4076aabd550ad04da515547cb108f0ad4bc84e4e26933771f578d2f41edcd614",
  "filled_amount": "0.007090",
  "order_hash": "0x14459af3a06abf6f7a0d3c2c1fa3b64d2e1b8a7c5e3d2b1f0a9876543210596b",
  "status": "filled",
  "submitted_at": "2026-05-04T11:42:31Z",
  "updated_at": "2026-05-04T11:42:46Z"
}
{
  "error": "<string>",
  "message": "<string>"
}
{
  "error": "<string>",
  "message": "<string>"
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Path Parameters

order_hash
string
required

Response

Successful Response

Returned from GET /order/{hash} — current state of a relayed order.

order_hash
string
required

On-chain order hash.

status
enum<string>
required

Order lifecycle state. One of pending, filled, expired, or cancelled. Upstream protocol states beyond these four (e.g. partially-filled, refunded) are mapped onto this set.

Available options:
pending,
filled,
expired,
cancelled
updated_at
string
required

ISO 8601 UTC timestamp at which this status was read.

fill_tx_hash
string | null

Transaction hash of the most recent fill. Populated for fully filled orders and for partial fills while status is still pending.

fill_price_usd
string | null

Implied USD execution rate per unit of the received token, derived from filled amounts and the input token's USD price. For USDC → equity buys, this is the USD paid per equity unit. Omitted when token decimals or pricing are not available.

filled_amount
string | null

Total amount filled so far, expressed as a raw integer in the input token's decimals. Populated for partial fills while status is still pending, and for fully filled orders.

submitted_at
string | null

ISO 8601 UTC timestamp at which the order was submitted.