Skip to main content

Get 24H Volume for Popular Instruments

API Description

This interface allow querying the 24-hour trading volume for popular instruments on the exchange. It provides aggregated volume data for major trading instruments, including BTC, ETH, LTC, and USDT, along with total market volume metrics.

Note: 24H volume for popular instruments data is only available via RESTful API.

Precautions

  1. This interface returns the trading volume for popular instruments over the past 24 hours. It does not require parameter to query a specific instrument. To access data for a specific instrument, please find it in the returned response.

Authentication

This is a public interface and does not require authentication. For details on using the RESTful API, please refer to Introduction > Authentication & Code Snippet > Spot > RESTful Public Interface.

Request Method

GET

Endpoint

/api/v1/public?command=return24hVolume

Frequency Limit

The frequency limit for this interface is 80 requests/s per IP. In addition to this per-interface limit, a global rate limit is also enforced.

For detailed information on Global rate limits and API Rate Limiting Policy, please refer to the "Frequency Limit" section at click here

Request Parameters

This interface does not require any request parameter.

Response Parameters

ParameterTypeDescription
dataJsonData object containing the 24-hour trading volume for popular instruments.
totalETHStringTotal ETH traded in the last 24 hours.
totalUSDTStringTotal USDT traded in the last 24 hours.
totalBTCStringTotal BTC traded in the last 24 hours.
ETH_USDTJsonData object
-ETHStringETH trading volume in the ETH/USDT market.
-USDTStringUSDT trading volume in the ETH/USDT market.
LTC_CNYTJsonData object
-LTCStringLTC trading volume in the LTC/CNYT market.
-CNYTStringCNYT trading volume in the LTC/CNYT market.
ETC_CNYTJsonData object
-ETCStringETC trading volume in the ETC/CNYT market.
-CNYTStringCNYT trading volume in the ETC/CNYT market.
CWT_CNYTJsonData object
-CWTStringCWT trading volume in the CWT/CNYT market.
-CNYTStringCNYT trading volume in the CWT/CNYT market.
BTC_CNYTJsonData object
-BTCStringBTC trading volume in the BTC/CNYT market.
-CNYTStringCNYT trading volume in the BTC/CNYT market.
BTC_USDTJsonData object
-BTCStringBTC trading volume in the BTC/USDT market.
-USDTStringUSDT trading volume in the BTC/USDT market.
LTC_USDTJsonData object
-LTCStringLTC trading volume in the LTC_USDT market.
-USDTStringUSDT trading volume in the LTC_USDT market.
msgStringResponse message, e.g., "SUCCESS"
successBooleanIndicates if the request was successful: true/false
failedBooleanIndicates if the request failed: true/false

Request Example

The following Python code shows how to get the 24-hour trading volume for popular instruments.

Note: For a complete code example, please refer to Introduction > Authentication & Code Snippet > Spot > RESTful Public Interface.

api_url= "/api/v1/public?command=return24hVolume"

params= {}
SpotRestfulPublic(api_url, params) # function SpotRestfulPublic() is defined in section (Introduction > Authentication & Code Snippet > Spot > RESTful Public Interface)

Note: For a complete Java code example, please refer to Introduction > Authentication & Code Snippet > Spot > RESTful Public Interface.

Response Example

The following is an example response returned by the above Python request.

{'code': '200',
'data': {'totalETH': '1118086.5235',
'totalUSDT': '2149633150.1000',
'ETH_USDT': {'ETH': '285517.372300', 'USDT': '548158874.9200'},
'LTC_CNYT': {'CNYT': '0.0000', 'LTC': '0.000000'},
'ETC_CNYT': {'ETC': '0.000000', 'CNYT': '0.0000'},
'totalBTC': '26283.6034',
'CWT_CNYT': {'CWT': '0.000000', 'CNYT': '0.0000'},
'BTC_CNYT': {'BTC': '0.000000', 'CNYT': '0.0000'},
'BTC_USDT': {'BTC': '20014.696800', 'USDT': '1594350194.0200'},
'LTC_USDT': {'USDT': '7124081.1600', 'LTC': '79505.491700'},
'ETH_CNYT': {'ETH': '0.000000', 'CNYT': '0.0000'}},
'msg': 'SUCCESS',
'success': True,
'failed': False}