Skip to main content

24hr Ticker

Description

Returns rolling 24-hour statistics for one or all listed markets. Updated incrementally on every fill and recomputed by a background decay task every 60 seconds to handle trades falling out of the window.

HTTP Request

GET /spot/ticker/24hr (public — no auth required)

Weight

0 — public market-data endpoints have no per-IP weight limit today (MVP).

Request Parameters

NameTypeRequiredDescription
symbolSTRINGNOMarket id (e.g. DFUSDT). Omit to get all listed markets as an array; provide to get a single object.

Response Example

Single-market mode (?symbol=DFUSDT) — 200 OK

{
"symbol": "DFUSDT",
"last_price": "0.5000",
"open_price": "0.4800",
"high": "0.5100",
"low": "0.4700",
"volume": "10000",
"quote_volume": "5000",
"trade_count": 234,
"open_time": 1778313600,
"close_time": 1778400000
}

All-markets mode (no symbol) — 200 OK

[
{
"symbol": "DFUSDT",
"last_price": "0.5000",
"open_price": "0.4800",
"high": "0.5100",
"low": "0.4700",
"volume": "10000",
"quote_volume": "5000",
"trade_count": 234,
"open_time": 1778313600,
"close_time": 1778400000
}
]
FieldNotes
last_priceMost recent fill price ever — not bounded by the 24-hour window.
open_priceFirst fill price within the rolling 24h window. If no trades have occurred in the window, equals last_price.
high / lowHighest / lowest fill price within the 24h window.
volumeTotal base-token volume traded in the window.
quote_volumeTotal quote-token notional traded in the window.
trade_countNumber (integer), not a string. Count of individual fills in the window.
open_time / close_timeUnix seconds. Window is [now - 86400, now].

Error Responses

HTTPerror
404TICKER_NOT_FOUND — queried by symbol but that market has no ticker row yet (no fills have occurred). Resolves automatically after the first fill.
500DB_ERROR

Full list: Error Codes.

Code Examples

cURL

# Single market
curl -s "https://api-sepolia.p99.world/api/v1/spot/ticker/24hr?symbol=DFUSDT"

# All listed markets
curl -s "https://api-sepolia.p99.world/api/v1/spot/ticker/24hr"

Python

import requests

BASE = "https://api-sepolia.p99.world/api/v1"

# Single market
ticker = requests.get(f"{BASE}/spot/ticker/24hr", params={"symbol": "DFUSDT"}).json()
print(ticker["symbol"], "last:", ticker["last_price"],
"24h range:", ticker["low"], "–", ticker["high"],
"vol:", ticker["volume"])

# All markets
all_tickers = requests.get(f"{BASE}/spot/ticker/24hr").json()
for t in all_tickers:
print(t["symbol"], t["last_price"])