curl --request GET \
--url https://api.tetrafi.io/api/v1/workspaces/{id}/trades \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tetrafi.io/api/v1/workspaces/{id}/trades"
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', 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",
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"
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")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tetrafi.io/api/v1/workspaces/{id}/trades")
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{
"items": [
{
"orderId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"sourceChain": "<string>",
"destChain": "<string>",
"route": {
"input": {
"asset": {
"assetId": "<string>",
"symbol": "<string>",
"resolutionStatus": "resolved",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"chainRef": "<string>",
"address": "<string>"
},
"rawAmount": "<string>",
"decimalAmount": "<string>"
},
"output": {
"asset": {
"assetId": "<string>",
"symbol": "<string>",
"resolutionStatus": "resolved",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"chainRef": "<string>",
"address": "<string>"
},
"rawAmount": "<string>",
"decimalAmount": "<string>"
}
},
"amountUsd": 123,
"lpName": "<string>",
"lpSource": "<string>",
"routingPathLabel": "<string>",
"status": "<string>",
"settlementStatus": "<string>",
"lifecycleStatus": {
"flowKind": "<string>",
"primary": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"isTerminal": true,
"rank": 123,
"rawStatus": "<string>",
"execution": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"settlement": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"withdrawal": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"rawDeferredStatus": "<string>"
},
"executionPrice": {
"source": "stored_quote_price",
"value": "<string>",
"baseSymbol": "<string>",
"quoteSymbol": "<string>"
},
"member": {
"userId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"role": "<string>",
"kycStatus": "<string>",
"joinedAt": "2023-11-07T05:31:56Z"
},
"routingPath": {
"type": "direct",
"brokerWorkspaceId": "<string>",
"brokerName": "<string>"
},
"orderKind": "<string>",
"deferredSettlement": {
"stage": "<string>",
"autoWithdraw": true,
"executedAt": "2023-11-07T05:31:56Z",
"estimatedSettlementAvailableAt": "2023-11-07T05:31:56Z",
"settlementWindowHours": 123,
"withdrawalStatus": "<string>",
"withdrawalTrackingId": "<string>",
"withdrawalTxHash": "<string>"
},
"settlementSpeedMs": 123,
"slippageBps": 123
}
],
"total": 123,
"offset": 123,
"limit": 123
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Trades
Lists trades executed under a workspace across every supported chain in one call. Filter by status, corridor, RFC 3339 time range, LP, routing path, or USD amount range; sort by a whitelisted column; page through results with limit and offset.
curl --request GET \
--url https://api.tetrafi.io/api/v1/workspaces/{id}/trades \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.tetrafi.io/api/v1/workspaces/{id}/trades"
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', 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",
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"
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")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tetrafi.io/api/v1/workspaces/{id}/trades")
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{
"items": [
{
"orderId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"sourceChain": "<string>",
"destChain": "<string>",
"route": {
"input": {
"asset": {
"assetId": "<string>",
"symbol": "<string>",
"resolutionStatus": "resolved",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"chainRef": "<string>",
"address": "<string>"
},
"rawAmount": "<string>",
"decimalAmount": "<string>"
},
"output": {
"asset": {
"assetId": "<string>",
"symbol": "<string>",
"resolutionStatus": "resolved",
"name": "<string>",
"decimals": 123,
"chainId": 123,
"chainRef": "<string>",
"address": "<string>"
},
"rawAmount": "<string>",
"decimalAmount": "<string>"
}
},
"amountUsd": 123,
"lpName": "<string>",
"lpSource": "<string>",
"routingPathLabel": "<string>",
"status": "<string>",
"settlementStatus": "<string>",
"lifecycleStatus": {
"flowKind": "<string>",
"primary": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"isTerminal": true,
"rank": 123,
"rawStatus": "<string>",
"execution": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"settlement": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"withdrawal": {
"key": "<string>",
"label": "<string>",
"tone": "<string>"
},
"rawDeferredStatus": "<string>"
},
"executionPrice": {
"source": "stored_quote_price",
"value": "<string>",
"baseSymbol": "<string>",
"quoteSymbol": "<string>"
},
"member": {
"userId": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"email": "<string>",
"role": "<string>",
"kycStatus": "<string>",
"joinedAt": "2023-11-07T05:31:56Z"
},
"routingPath": {
"type": "direct",
"brokerWorkspaceId": "<string>",
"brokerName": "<string>"
},
"orderKind": "<string>",
"deferredSettlement": {
"stage": "<string>",
"autoWithdraw": true,
"executedAt": "2023-11-07T05:31:56Z",
"estimatedSettlementAvailableAt": "2023-11-07T05:31:56Z",
"settlementWindowHours": 123,
"withdrawalStatus": "<string>",
"withdrawalTrackingId": "<string>",
"withdrawalTxHash": "<string>"
},
"settlementSpeedMs": 123,
"slippageBps": 123
}
],
"total": 123,
"offset": 123,
"limit": 123
}{
"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
Query Parameters
Filter by settlement status bucket; pass all (or omit) for every status
Directional corridor as source-dest - matches the trade's source and destination chains
Only trades created at or after this time (RFC 3339)
Only trades created at or before this time (RFC 3339)
Admin/Owner only - case-insensitive match on member name or email; ignored for other callers
Case-insensitive match on LP display name or solver id
Filter by routing path type - direct or via_broker; pass all (or omit) for every path
Minimum trade notional in USD (inclusive)
Maximum trade notional in USD (inclusive)
Page size, clamped to [1, 100]
1 <= x <= 100Number of records to skip
Sort column: created_at (default), order_id, member, corridor, amount_usd, lp_name, routing_path, settlement_status, settlement_speed_ms - unrecognized values fall back to created_at
Sort direction; defaults to desc
asc, desc