curl --request GET \
--url https://hip4-api.totalis.trade/v1/partner/fills \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/partner/fills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://hip4-api.totalis.trade/v1/partner/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://hip4-api.totalis.trade/v1/partner/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://hip4-api.totalis.trade/v1/partner/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://hip4-api.totalis.trade/v1/partner/fills")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/partner/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{
"fills": [
{
"kind": "ACCEPT",
"wallet": "0x1111111111111111111111111111111111111111",
"position_id": "0x7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"legs": [
{
"outcome_id": "1201",
"side": "YES"
},
{
"outcome_id": "1207",
"side": "NO"
}
],
"amount": "25000000",
"fee": "375000",
"stake": "24962500",
"payout": "61000000",
"share_bps": 2000,
"time": "2026-11-03T14:02:11Z",
"block_number": 21904412,
"log_index": 3,
"transaction_hash": "0x5b0e8d2a00000000000000000000000000000000000000000000000000000001"
},
{
"kind": "CASH_OUT",
"wallet": "0x1111111111111111111111111111111111111111",
"position_id": "0x7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"legs": [
{
"outcome_id": "1201",
"side": "YES"
},
{
"outcome_id": "1207",
"side": "NO"
}
],
"amount": "41000000",
"fee": "253875",
"stake": "24962500",
"payout": "61000000",
"share_bps": 2000,
"time": "2026-11-04T19:40:52Z",
"block_number": 21987305,
"log_index": 0,
"transaction_hash": "0x5b0e8d2a00000000000000000000000000000000000000000000000000000002"
}
],
"next_cursor": "v1:21987305:0",
"has_more": true
}{
"error": {
"code": "INVALID_QUERY",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "FORBIDDEN",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "RATE_LIMITED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}{
"error": {
"code": "AUTHORIZATION_UNAVAILABLE",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}List partner fills
Each fee event on a position opened through your builder codes, oldest first: its opening, claims and sale back to the vault, with the wallet that acted, the fee and the transaction, whose fees add up to GET /v1/partner/report’s total_fees for the same range.
Requires your partner server key (tpk_), sent from your server with no Origin; an API key cannot call it.
curl --request GET \
--url https://hip4-api.totalis.trade/v1/partner/fills \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/partner/fills"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://hip4-api.totalis.trade/v1/partner/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://hip4-api.totalis.trade/v1/partner/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://hip4-api.totalis.trade/v1/partner/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://hip4-api.totalis.trade/v1/partner/fills")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/partner/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{
"fills": [
{
"kind": "ACCEPT",
"wallet": "0x1111111111111111111111111111111111111111",
"position_id": "0x7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"legs": [
{
"outcome_id": "1201",
"side": "YES"
},
{
"outcome_id": "1207",
"side": "NO"
}
],
"amount": "25000000",
"fee": "375000",
"stake": "24962500",
"payout": "61000000",
"share_bps": 2000,
"time": "2026-11-03T14:02:11Z",
"block_number": 21904412,
"log_index": 3,
"transaction_hash": "0x5b0e8d2a00000000000000000000000000000000000000000000000000000001"
},
{
"kind": "CASH_OUT",
"wallet": "0x1111111111111111111111111111111111111111",
"position_id": "0x7a3c9e1f00000000000000000000000000000000000000000000000000000001",
"legs": [
{
"outcome_id": "1201",
"side": "YES"
},
{
"outcome_id": "1207",
"side": "NO"
}
],
"amount": "41000000",
"fee": "253875",
"stake": "24962500",
"payout": "61000000",
"share_bps": 2000,
"time": "2026-11-04T19:40:52Z",
"block_number": 21987305,
"log_index": 0,
"transaction_hash": "0x5b0e8d2a00000000000000000000000000000000000000000000000000000002"
}
],
"next_cursor": "v1:21987305:0",
"has_more": true
}{
"error": {
"code": "INVALID_QUERY",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "FORBIDDEN",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "RATE_LIMITED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}{
"error": {
"code": "AUTHORIZATION_UNAVAILABLE",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}Authorizations
Partner server key (tpk_...), issued by Totalis to a registered partner. It calls only POST /v1/partner/wallet-admissions, GET /v1/partner/report, GET /v1/partner/fills, GET /v1/partner/webhook-events and GET /v1/partner/accounts/{wallet}/account-value, from the partner's server with no Origin. It reads the value of an account the partner admitted but cannot act for an account. Never ship it to a browser: pages use the publishable browser key (X-Totalis-Partner: tpb_...), which labels traffic but authorizes nothing.
Query Parameters
Response
A page of your fills. No caching.
Was this page helpful?

