Testnetsats and USDhb here have no value.
Skip to content
Open testnet app

Get 24h stats ​

24-hour volume and traded high and low, derived from fills, including the venue's own USDhb hedge legs.

GEThttps://testnet.hardbasis.com/v1/markets/{id}/stats24h
Auth none (public)Effect read
bash
curl -fsS "$HB/v1/markets/$ID/stats24h"
python
import os

import requests

HB = os.environ.get("HB", "https://testnet.hardbasis.com")
ID = os.environ["ID"]

resp = requests.get(
    f"{HB}/v1/markets/{ID}/stats24h",
)
resp.raise_for_status()
print(resp.json())
ts
const HB = process.env.HB ?? "https://testnet.hardbasis.com";
const ID = process.env.ID!;

const res = await fetch(`${HB}/v1/markets/${ID}/stats24h`, {
  method: "GET",
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(await res.json());
json
{
  "marketId": "string",
  "windowMs": "100000",
  "basis": "fills",
  "fills": 0,
  "volumeContracts": "100000",
  "hiQ8": "100000",
  "loQ8": "100000",
  "truncated": true
}
json
{
  "error": "string",
  "code": "not_found"
}

Path parameters ​

idstringrequired

Responses ​

200 OK
marketIdstringrequired
windowMsstringmsrequired
basisconst fillsrequired
fillsintegerrequired
volumeContractsstringcontractsrequired
hiQ8string | nullq8required
loQ8string | nullq8required
truncatedbooleanrequired

Errors ​

Match on code, never on the message. Full taxonomy in Errors.

CodeStatusRetry
not_found404final
404: A refusal carrying a stable machine code (ErrorCode) beside human error prose.

Last updated 2026-11-13 · spec 1.8.0

Program policy v1 · numbers current as of 2026-11-25

Testnet: test sats have no value. Nothing on this page is an offer, a solicitation, or advice.