curl --request GET \
--url https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}', 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.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}",
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.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}"
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.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}")
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{
"trade": {},
"settlement": {},
"lp": {},
"orderKind": "<string>",
"substatus": "<string>",
"substatusMessage": "<string>",
"legs": [
{}
],
"member": {
"userId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"role": "<string>",
"kycStatus": "<string>",
"joinedAt": "2023-11-07T05:31:56Z"
},
"compliance": {},
"snapshotCompliance": {},
"travelRuleTransmission": {},
"complianceProofs": {},
"intent": {},
"fees": {}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Trade by ID
Returns one trade’s full dossier, keyed by its order id: trade details, on-chain settlement (including the settlement transaction hashes), LP info, and - for admin/owner callers - compliance, Travel Rule, proof, intent, and fee sections.
curl --request GET \
--url https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}', 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.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}",
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.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}"
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.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tetrafi.io/api/v1/workspaces/{id}/trades/{orderId}")
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{
"trade": {},
"settlement": {},
"lp": {},
"orderKind": "<string>",
"substatus": "<string>",
"substatusMessage": "<string>",
"legs": [
{}
],
"member": {
"userId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"role": "<string>",
"kycStatus": "<string>",
"joinedAt": "2023-11-07T05:31:56Z"
},
"compliance": {},
"snapshotCompliance": {},
"travelRuleTransmission": {},
"complianceProofs": {},
"intent": {},
"fees": {}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Workspace API key (tfk_test_/tfk_live_); results are scoped to the key's workspace.
Path Parameters
Workspace whose trades are returned - results are scoped to it
Order id from the trades list - trades are keyed by order id, not transaction hash
Response
Successful Response
Full trade dossier keyed by order id. The settlement section carries the on-chain transaction hashes.
Section A: trade details - the list-item fields plus fill time and slippage tolerance
Section B: on-chain settlement - per-stage transaction references (submit/fill/proof/finalise and a generic transactions list), including the settlement transaction hashes
Section C: LP info
Canonical route-aware order kind - omitted for non-route orders
Finer-grained state within the coarse status
Human-readable elaboration of substatus
Per-leg execution for multi-leg route orders; omitted for single-leg orders
Member identity attached to a trade - present for admin/owner callers only.
Show child attributes
Show child attributes
Compliance summary - admin/owner callers only
Per-order compliance snapshot captured at creation - admin/owner callers only
Latest Travel Rule transmission record - admin/owner callers only
Cryptographic and provenance proofs - admin/owner callers only
ERC-7683 intent envelope captured at submission - admin/owner callers only
Fee breakdown: gas, protocol fee, solver fee, relayer tips - omitted when the order predates fee capture