Skip to main content

Tickers (24hr)

Two endpoints, one shape. Use All Pairs for a market overview, or For Specific Coin when you only care about one symbol (or a few).

All Pairs

Returns 24hr stats for every symbol on an exchange.

MethodGET
Endpoint/trade/api/v2/24hr/all-pairs/ticker

Request Parameters

ParameterTypeMandatoryDescription
exchangestringYesSee Exchange Identifiers.

Example

import requests

headers, path = sign_request("GET", "/trade/api/v2/24hr/all-pairs/ticker",
params={"exchange": "coinswitchx"})
response = requests.get(BASE_URL + path, headers=headers)
print(response.json())

For Specific Coin

Returns 24hr stats for one or more specific symbols. Accepts a comma-separated list of exchanges.

MethodGET
Endpoint/trade/api/v2/24hr/ticker

Request Parameters

ParameterTypeMandatoryDescription
exchangestringYesComma-separated list of exchange identifiers.
symbolstringYesBASE/QUOTE, e.g. BTC/INR, BTC/USDT.

Example

import requests

headers, path = sign_request("GET", "/trade/api/v2/24hr/ticker",
params={"exchange": "coinswitchx,c2c1",
"symbol": "BTC/INR"})
response = requests.get(BASE_URL + path, headers=headers)
print(response.json())

Response

Both endpoints return the same shape:

{
"data": {
"WAVES/INR": {
"symbol": "WAVES/INR",
"openPrice": "127.65",
"lowPrice": "125.53",
"highPrice": "129.88",
"lastPrice": "125.56",
"baseVolume": "1910.65",
"quoteVolume": "240593.58",
"percentageChange": "-1.63728946337642",
"bidPrice": "125.56",
"askPrice": "127.29",
"at": 1687267004787
}
}
}

Response Parameters

data is an object keyed by symbol. Each value:

FieldTypeDescription
symbolstringSymbol, e.g. "WAVES/INR".
openPricestringPrice 24h ago.
lowPricestring24h low.
highPricestring24h high.
lastPricestringMost recent trade price.
baseVolumestring24h volume in base asset.
quoteVolumestring24h volume in quote asset.
percentageChangestring24h percentage change.
bidPricestringBest bid.
askPricestringBest ask.
atintegerSnapshot timestamp (Unix milliseconds).