curl --request GET \
--url https://hip4-api.totalis.trade/v1/me/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/me/positions"
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/me/positions', 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/me/positions",
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/me/positions"
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/me/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/me/positions")
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{
"context": {
"as_of": "2026-09-26T12:00:02Z",
"status": "CURRENT"
},
"items": [
{
"position_id": "0x80acb2c7053741866dba533f638a391852f855ebd1aabe170ee2b505d71b4938",
"vault_address": "0x0cbffe7b40b64d5fd04f1288f4c9fe0fc50e2f83",
"cashout_available": true,
"golden": false,
"maker_id": "7",
"owner": "0x1111111111111111111111111111111111111111",
"owner_username": null,
"opened_via": null,
"status": "OPEN",
"close_reason": null,
"fee_bps": 100,
"net_stake": "24950000",
"acquisition_cost": "25000000",
"payout": "100000000",
"settlement_payout": null,
"unclaimed_profit": "0",
"cashout_price": null,
"legs": [
{
"outcome_id": "1209",
"side": "YES",
"status": "UNRESOLVED",
"result_numerator": null,
"result_denominator": null
},
{
"outcome_id": "1210",
"side": "NO",
"status": "UNRESOLVED",
"result_numerator": null,
"result_denominator": null
}
],
"created_at": "2026-09-25T18:21:44Z",
"updated_at": "2026-09-25T18:21:44Z",
"settlement_kind": null,
"maker_pnl": null,
"maker_result": null,
"protocol_fees": "50000"
},
{
"position_id": "0xd9d9664d8d5996d51a8aea5a199441e519d09b797ea4b2a370016b03ce5a4e11",
"vault_address": "0x0cbffe7b40b64d5fd04f1288f4c9fe0fc50e2f83",
"cashout_available": true,
"golden": false,
"maker_id": "7",
"owner": "0x1111111111111111111111111111111111111111",
"owner_username": null,
"opened_via": null,
"status": "SETTLED_UNCLAIMED",
"close_reason": null,
"fee_bps": 100,
"net_stake": "49900000",
"acquisition_cost": "50000000",
"payout": "120000000",
"settlement_payout": "120000000",
"unclaimed_profit": "70100000",
"cashout_price": null,
"legs": [
{
"outcome_id": "1180",
"side": "YES",
"status": "RESOLVED",
"result_numerator": "100000000",
"result_denominator": "100000000"
},
{
"outcome_id": "1195",
"side": "NO",
"status": "RESOLVED",
"result_numerator": "100000000",
"result_denominator": "100000000"
}
],
"created_at": "2026-09-20T09:14:02Z",
"updated_at": "2026-09-24T16:00:11Z",
"settlement_kind": "WIN",
"maker_pnl": "-70100000",
"maker_result": "LOST",
"protocol_fees": "100000"
}
],
"next_cursor": null,
"has_more": false,
"total_count": "2"
}{
"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": "NOT_FOUND",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "CURSOR_EXPIRED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "REFRESH"
}
}{
"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 positions
List your account’s positions.
Requires one of:
- a key for your account with
account:read - a key for a maker with
vault:read
A wallet session for the account also works, with no scope limit, sent from its Origin.
curl --request GET \
--url https://hip4-api.totalis.trade/v1/me/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/me/positions"
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/me/positions', 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/me/positions",
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/me/positions"
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/me/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/me/positions")
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{
"context": {
"as_of": "2026-09-26T12:00:02Z",
"status": "CURRENT"
},
"items": [
{
"position_id": "0x80acb2c7053741866dba533f638a391852f855ebd1aabe170ee2b505d71b4938",
"vault_address": "0x0cbffe7b40b64d5fd04f1288f4c9fe0fc50e2f83",
"cashout_available": true,
"golden": false,
"maker_id": "7",
"owner": "0x1111111111111111111111111111111111111111",
"owner_username": null,
"opened_via": null,
"status": "OPEN",
"close_reason": null,
"fee_bps": 100,
"net_stake": "24950000",
"acquisition_cost": "25000000",
"payout": "100000000",
"settlement_payout": null,
"unclaimed_profit": "0",
"cashout_price": null,
"legs": [
{
"outcome_id": "1209",
"side": "YES",
"status": "UNRESOLVED",
"result_numerator": null,
"result_denominator": null
},
{
"outcome_id": "1210",
"side": "NO",
"status": "UNRESOLVED",
"result_numerator": null,
"result_denominator": null
}
],
"created_at": "2026-09-25T18:21:44Z",
"updated_at": "2026-09-25T18:21:44Z",
"settlement_kind": null,
"maker_pnl": null,
"maker_result": null,
"protocol_fees": "50000"
},
{
"position_id": "0xd9d9664d8d5996d51a8aea5a199441e519d09b797ea4b2a370016b03ce5a4e11",
"vault_address": "0x0cbffe7b40b64d5fd04f1288f4c9fe0fc50e2f83",
"cashout_available": true,
"golden": false,
"maker_id": "7",
"owner": "0x1111111111111111111111111111111111111111",
"owner_username": null,
"opened_via": null,
"status": "SETTLED_UNCLAIMED",
"close_reason": null,
"fee_bps": 100,
"net_stake": "49900000",
"acquisition_cost": "50000000",
"payout": "120000000",
"settlement_payout": "120000000",
"unclaimed_profit": "70100000",
"cashout_price": null,
"legs": [
{
"outcome_id": "1180",
"side": "YES",
"status": "RESOLVED",
"result_numerator": "100000000",
"result_denominator": "100000000"
},
{
"outcome_id": "1195",
"side": "NO",
"status": "RESOLVED",
"result_numerator": "100000000",
"result_denominator": "100000000"
}
],
"created_at": "2026-09-20T09:14:02Z",
"updated_at": "2026-09-24T16:00:11Z",
"settlement_kind": "WIN",
"maker_pnl": "-70100000",
"maker_result": "LOST",
"protocol_fees": "100000"
}
],
"next_cursor": null,
"has_more": false,
"total_count": "2"
}{
"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": "NOT_FOUND",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "NEVER"
}
}{
"error": {
"code": "CURSOR_EXPIRED",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "REFRESH"
}
}{
"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
Scoped API key (ttk_...), created in the Totalis app or by a wallet-session user through the API keys routes with a fresh wallet signature; those routes never accept a key. Each key acts for one account, yours or a maker's, and holds only scopes that account can use. Each operation lists the scopes it requires. Send no Origin.
Query Parameters
Return only positions with a leg on this HIP-4 outcome, resolved or not.
10^(0|[1-9][0-9]{0,8}|[1-3][0-9]{9}|4[01][0-9]{8}|42[0-8][0-9]{7}|429[0-3][0-9]{6}|4294[0-8][0-9]{5}|42949[0-5][0-9]{4}|429496[0-6][0-9]{3}|4294967[0-1][0-9]{2}|42949672[0-8][0-9]|429496729[0-5])$Response
Your positions, reconciled against the vault contract. A key for your account lists the positions you hold; a key for a maker lists the positions the maker backs. The key's permissions are checked on every request. One freshness status covers the read; amounts are atomic USDC strings or null. No shared caching.
Was this page helpful?

