Skip to main content

Ticker Stats

Retrieve ticker statistics for specific or all trading symbols.

Endpoint

GET /ticker-stats

Parameters

ParameterTypeRequiredDescription
namesstringNoComma-separated list of symbols to retrieve (e.g., CAKE_USDT,ETH_USDT). If omitted, retrieves stats for all symbols.

Response

JSON Array of Objects


Response Fields

FieldTypeDescription
astringSymbol name (e.g., ETH_USDT).
bstringCurrent price.
cstringClose price 24 hours ago.
dstringHigh price in the last 24 hours.
estringLow price in the last 24 hours.
fstringBase volume in the last 24 hours (e.g., total ETH for ETH_USDT).
gstringQuote volume in the last 24 hours (e.g., total USDT for ETH_USDT).
hstringLast updated timestamp (in milliseconds).
istringBest bid price.
kstringBest ask price.

Example Usage

curl --location 'https://spot-markets.goonus.io/ticker-stats?names=CAKE_USDT,ETH_USDT'

Response Example

[
{
"a": "ETH_USDT",
"b": "2.0000000",
"c": "2.0000000",
"d": "3.0000000",
"e": "0.0000000",
"f": "0.300",
"g": "0.80000000",
"h": "1720755300000",
"i": "4001.00000",
"k": "4503.05000"
},
{
"a": "BTC_USDT",
"b": "0.0000000",
"c": null,
"d": "0.0000000",
"e": "0.0000000",
"f": "0.000",
"g": "0.00000000",
"h": "1720755300000",
"i": "4001.00000",
"k": "4503.05000"
}
]