Get Recent Builder Code Fills
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",
"accountId": "10458932786832481",
"orderId": "a4c2e9f17b3d4e8c9f0a1b2c3d4e5f60",
"clientOrderId": "my-order-123",
"market": "AAPL-USD.P",
"price": "227.50",
"size": "5.00",
"side": "buy",
"time": "2026-09-28T14:32:07.123456Z"
},
{
"builderCodeFee": "0.0508",
"fillId": "9b1e4c2a7f0d3e5b8a6c1f4d2e9b7a3c",
"accountId": "2564891920043613872",
"orderId": "5e8b1d3f9a2c4e6b7d0f1a3c5e7b9d2f",
"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"
}Builder Code
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.
GET
/
v1
/
builder_code
/
fills
Get Recent Builder Code Fills
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",
"accountId": "10458932786832481",
"orderId": "a4c2e9f17b3d4e8c9f0a1b2c3d4e5f60",
"clientOrderId": "my-order-123",
"market": "AAPL-USD.P",
"price": "227.50",
"size": "5.00",
"side": "buy",
"time": "2026-09-28T14:32:07.123456Z"
},
{
"builderCodeFee": "0.0508",
"fillId": "9b1e4c2a7f0d3e5b8a6c1f4d2e9b7a3c",
"accountId": "2564891920043613872",
"orderId": "5e8b1d3f9a2c4e6b7d0f1a3c5e7b9d2f",
"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
BearerAuthApiKeyAuth
Response
Recent fills attributed to the caller's builder code, newest first