curl --request GET \
--url https://hip4-api.totalis.trade/v1/charts/{series}import requests
url = "https://hip4-api.totalis.trade/v1/charts/{series}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hip4-api.totalis.trade/v1/charts/{series}', 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/charts/{series}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/charts/{series}"
req, _ := http.NewRequest("GET", url, nil)
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/charts/{series}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/charts/{series}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"series": "chance:8573",
"scale": "1000000000000000000",
"reducer": 1,
"grid": {
"from": 1795305600000000,
"to": 1795392000000000,
"step": 360000000,
"valid_until": null
},
"through": 1795370520000000,
"entering": "500000000000000000",
"points": {
"at": [
1795305600000000,
1795306020000000,
1795306320000000,
1795306440000000
],
"value": [
"500000000000000000",
"520000000000000000",
"470000000000000000",
null
]
},
"partial": {
"start": 1795370400000000,
"points": {
"at": [],
"value": []
},
"open": {
"first": {
"at": 1795370400000000,
"value": "610000000000000000"
},
"low": {
"at": 1795370400000000,
"value": "610000000000000000"
},
"high": {
"at": 1795370460000000,
"value": "630000000000000000"
},
"last": {
"at": 1795370460000000,
"value": "630000000000000000"
}
}
},
"end": null,
"final": false
}{
"error": {
"code": "INVALID_QUERY",
"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": "INTERNAL_ERROR",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}{
"error": {
"code": "MARKET_DATA_UNAVAILABLE",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}Get chart
Anyone: get one chance or perp mark line on a grid the server picks, reduced for drawing, whose recorded part never changes.
No API key required.
curl --request GET \
--url https://hip4-api.totalis.trade/v1/charts/{series}import requests
url = "https://hip4-api.totalis.trade/v1/charts/{series}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://hip4-api.totalis.trade/v1/charts/{series}', 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/charts/{series}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/charts/{series}"
req, _ := http.NewRequest("GET", url, nil)
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/charts/{series}")
.asString();require 'uri'
require 'net/http'
url = URI("https://hip4-api.totalis.trade/v1/charts/{series}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"series": "chance:8573",
"scale": "1000000000000000000",
"reducer": 1,
"grid": {
"from": 1795305600000000,
"to": 1795392000000000,
"step": 360000000,
"valid_until": null
},
"through": 1795370520000000,
"entering": "500000000000000000",
"points": {
"at": [
1795305600000000,
1795306020000000,
1795306320000000,
1795306440000000
],
"value": [
"500000000000000000",
"520000000000000000",
"470000000000000000",
null
]
},
"partial": {
"start": 1795370400000000,
"points": {
"at": [],
"value": []
},
"open": {
"first": {
"at": 1795370400000000,
"value": "610000000000000000"
},
"low": {
"at": 1795370400000000,
"value": "610000000000000000"
},
"high": {
"at": 1795370460000000,
"value": "630000000000000000"
},
"last": {
"at": 1795370460000000,
"value": "630000000000000000"
}
}
},
"end": null,
"final": false
}{
"error": {
"code": "INVALID_QUERY",
"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": "INTERNAL_ERROR",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}{
"error": {
"code": "MARKET_DATA_UNAVAILABLE",
"field_violations": [
{
"code": "REQUIRED",
"field": "<string>"
}
],
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retry": "BACKOFF"
}
}Path Parameters
The line: chance:<outcome_id> for an outcome's YES chance (NO is the scale minus each value; an outcome id no HIP-4 asset can have, above 419496729, is 400), or mark:<coin> for a perp's mark as Hyperliquid names it.
^(chance:(0|[1-9][0-9]{0,7}|[1-3][0-9]{8}|40[0-9]{7}|41[0-8][0-9]{6}|419[0-3][0-9]{5}|4194[0-8][0-9]{4}|41949[0-5][0-9]{3}|419496[0-6][0-9]{2}|4194967[01][0-9]|41949672[0-9])|mark:[A-Za-z0-9:._-]{1,40})$Query Parameters
Only with a mark: line: the outcome id of the market it is drawn for. Its end is then that market's expiry or recorded settlement, as for the market's own chance line, and range=ALL starts at that market's first record instead of the coin's; other windows are unchanged.
^[1-9][0-9]{0,9}$Response
The line on the server's grid. Totalis records every change of a chance or perp mark: second detail for seven days, minute detail from 2026-10-18 18:53 UTC on, forever. The grid's step is the shortest of a fixed ladder (250 ms up to 28 days, aligned to Unix time) that covers the window in at most 240 buckets. A step under a minute draws second detail while the window's first day of it is kept (until eight days after that day's start, and not before Totalis began recording the line's feed); otherwise the window comes on a one-minute grid of minute closes. Each bucket carries the first, lowest, highest and last value it saw at their real times, in time order, and where the line became unknown; a value held into a bucket shows at its start. Everything before through is final; continue the bucket that holds it from live points at or after through, and the result equals a later read. A line with no record is empty, never a guessed value, and nothing before 2026-10-18 18:53 UTC is drawn.
One chart line on the server's grid.
The reduction this body was cut with: per bucket and known stretch, first, lowest, highest and last value at their real times, in time order, a value serving several roles once, the earliest on a tie. A stretch held from before a bucket starts at the bucket's start; a null ends one where it was recorded, and a null at the bucket's start leaves the held value out; a value equal to the one held is no change. A client continuing the partial bucket uses the same one; the backend's shared reducer fixture holds its cases.
Everything before it is final: the last recorded minute edge on minute grids (the close of the minute ending at it is final, in the bucket before it), the last recorded bucket edge on finer ones, or end. A point at or after it comes from the live lane.
0 <= x <= 9007199254740991Where an ended line stops (the market's expiry or recorded settlement, the earlier, once passed; for a mark line, that of the market it was asked for): nothing at or after it is drawn. Between grid edges it cuts the last bucket to [its start, end). Null before. Until the settlement is recorded an end from the expiry may still move or go back to null when the expiry is revised (final false, cached as a live line); from the settlement on it is the earlier of the expiry in effect then and the settlement, and never moves. The chart read is the only source of a line's end: read again when the market stream shows the market expired, postponed or settled.
0 <= x <= 9007199254740991Was this page helpful?

