curl --request GET \
--url https://hip4-api.totalis.trade/v1/markets/{outcome_id}/trades \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/markets/{outcome_id}/trades"
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/markets/{outcome_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://hip4-api.totalis.trade/v1/markets/{outcome_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 => [
"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/markets/{outcome_id}/trades"
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/markets/{outcome_id}/trades")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/markets/{outcome_id}/trades")
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{
"items": [
{
"id": "1182266768-573080073600-85730A",
"outcome_id": "8573",
"market_side": "YES",
"direction": "SELL",
"shares": "86",
"avg_price": "0.80788",
"notional": "69.47768",
"quote": "USDC",
"height": 1182266768,
"time": "2026-10-13T12:00:05.740Z",
"oid": 573080073600,
"taker": "0x8a320f9816f56e5bd7d87187a128a76488da35f3"
},
{
"id": "1182266768-573080073601-85730B",
"outcome_id": "8573",
"market_side": "YES",
"direction": "BUY",
"shares": "86",
"avg_price": "0.8079",
"notional": "69.4794",
"quote": "USDC",
"height": 1182266768,
"time": "2026-10-13T12:00:05.740Z",
"oid": 573080073601,
"taker": "0x8a320f9816f56e5bd7d87187a128a76488da35f3"
}
],
"next_cursor": "YmVmb3JlOjExODIyNjY3Njg",
"has_more": true,
"unknown_through_height": null,
"through_height": 1182279754,
"gaps": []
}{
"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": "INTERNAL_ERROR",
"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 market trades
Anyone: page a market’s taker orders from the account index, newest block first in whole HyperCore blocks, the same events with the same ids as the market stream’s trades frames, for history below a tradesSnapshot’s complete_from_height; a signed-out answer is the same for everyone and cached for 30 seconds.
No API key required; callers without one receive the public projection. A key, when sent, must be one of:
- a key for your account
- a key for a maker
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/markets/{outcome_id}/trades \
--header 'Authorization: Bearer <token>'import requests
url = "https://hip4-api.totalis.trade/v1/markets/{outcome_id}/trades"
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/markets/{outcome_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://hip4-api.totalis.trade/v1/markets/{outcome_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 => [
"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/markets/{outcome_id}/trades"
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/markets/{outcome_id}/trades")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/markets/{outcome_id}/trades")
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{
"items": [
{
"id": "1182266768-573080073600-85730A",
"outcome_id": "8573",
"market_side": "YES",
"direction": "SELL",
"shares": "86",
"avg_price": "0.80788",
"notional": "69.47768",
"quote": "USDC",
"height": 1182266768,
"time": "2026-10-13T12:00:05.740Z",
"oid": 573080073600,
"taker": "0x8a320f9816f56e5bd7d87187a128a76488da35f3"
},
{
"id": "1182266768-573080073601-85730B",
"outcome_id": "8573",
"market_side": "YES",
"direction": "BUY",
"shares": "86",
"avg_price": "0.8079",
"notional": "69.4794",
"quote": "USDC",
"height": 1182266768,
"time": "2026-10-13T12:00:05.740Z",
"oid": 573080073601,
"taker": "0x8a320f9816f56e5bd7d87187a128a76488da35f3"
}
],
"next_cursor": "YmVmb3JlOjExODIyNjY3Njg",
"has_more": true,
"unknown_through_height": null,
"through_height": 1182279754,
"gaps": []
}{
"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": "INTERNAL_ERROR",
"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.
Path Parameters
HIP-4 outcome ID of the market, as a decimal string.
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])$Query Parameters
First page only, instead of cursor: start below this HyperCore height, such as a tradesSnapshot's complete_from_height. Without both, the page starts at the newest order the account index holds, which trails our node by about a second (through_height). A height above the index's through_height + 1 answers 503 DEPENDENCY_STALE, never stored, until the index reaches it: the heights between are in neither the stream nor the index yet, so retry after Retry-After. One at or below the index's floor, below which it holds nothing, answers 400 INVALID_QUERY naming before_height.
1 <= x <= 9007199254740991Response
A page of taker orders in whole blocks, at most limit unless its first block alone holds more
Was this page helpful?

