curl --request GET \
--url https://api.ondoperps.xyz/v1/builder_code/fills \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ondoperps.xyz/v1/builder_code/fills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ondoperps.xyz/v1/builder_code/fills', 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.ondoperps.xyz/v1/builder_code/fills",
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://api.ondoperps.xyz/v1/builder_code/fills"
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://api.ondoperps.xyz/v1/builder_code/fills")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ondoperps.xyz/v1/builder_code/fills")
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{
"success": true,
"result": [
{
"builderCodeFee": "0.2275",
"fillId": "70a37d8f972f2494837f9dba8364cbb4",
"market": "AAPL-USD.P",
"price": "227.50",
"size": "5.00",
"side": "buy",
"time": "2026-09-28T14:32:07.123456Z"
},
{
"builderCodeFee": "0.0508",
"fillId": "9b1e4c2a7f0d3e5b8a6c1f4d2e9b7a3c",
"market": "NVDA-USD.P",
"price": "127.10",
"size": "2.00",
"side": "sell",
"time": "2026-09-28T14:31:55.004210Z"
}
]
}{
"success": false,
"error": "Description of the error",
"error_code": "auth_missing"
}{
"success": false,
"error": "Description of the error",
"error_code": "account_not_allowed"
}{
"success": false,
"error": "No builder code found for this account.",
"error_code": "builder_code_not_found"
}{
"success": false,
"error": "Description of the error",
"error_code": "too_many_requests"
}{
"success": false,
"error": "Description of the error",
"error_code": "unknown"
}Get Recent Builder Code Fills
Returns the most recent fills attributed to the builder code owned by the authenticated account, newest first, across every account that traded with that code. The exchange retains at most 200 fills per builder code.
Use this endpoint to resynchronize after a builderFills WebSocket disconnect: reconnect, subscribe, then call this endpoint and de-duplicate by fillId. It is a short recovery window, not a fill history. For totals over an arbitrary period, use the builder-code statistics endpoint instead.
The retained window is rebuilt when the exchange restarts, so a response can contain fewer than 200 fills shortly afterwards.
curl --request GET \
--url https://api.ondoperps.xyz/v1/builder_code/fills \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ondoperps.xyz/v1/builder_code/fills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ondoperps.xyz/v1/builder_code/fills', 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.ondoperps.xyz/v1/builder_code/fills",
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://api.ondoperps.xyz/v1/builder_code/fills"
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://api.ondoperps.xyz/v1/builder_code/fills")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ondoperps.xyz/v1/builder_code/fills")
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{
"success": true,
"result": [
{
"builderCodeFee": "0.2275",
"fillId": "70a37d8f972f2494837f9dba8364cbb4",
"market": "AAPL-USD.P",
"price": "227.50",
"size": "5.00",
"side": "buy",
"time": "2026-09-28T14:32:07.123456Z"
},
{
"builderCodeFee": "0.0508",
"fillId": "9b1e4c2a7f0d3e5b8a6c1f4d2e9b7a3c",
"market": "NVDA-USD.P",
"price": "127.10",
"size": "2.00",
"side": "sell",
"time": "2026-09-28T14:31:55.004210Z"
}
]
}{
"success": false,
"error": "Description of the error",
"error_code": "auth_missing"
}{
"success": false,
"error": "Description of the error",
"error_code": "account_not_allowed"
}{
"success": false,
"error": "No builder code found for this account.",
"error_code": "builder_code_not_found"
}{
"success": false,
"error": "Description of the error",
"error_code": "too_many_requests"
}{
"success": false,
"error": "Description of the error",
"error_code": "unknown"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Recent fills attributed to the caller's builder code, newest first
Whether the request was successful
true
Error message, present only on failure
""
Semantic error code. See each endpoint's error responses for the specific codes it can return.
Deprecation notice, if applicable
""
Up to 200 fills, newest first. An owner with no recorded fills returns an empty array.
Show child attributes
Show child attributes