GET
/api/v1/exchange/list
Get Exchange List
Get a list of all supported exchanges with their basic information and statistics. This endpoint returns exchange codes, names, and the number of trading pairs available on each exchange. This is a public endpoint and does not require authentication.
Request Parameters
Response Example
{
"code": 200,
"msg": "success",
"data": [
{
"id": 1,
"code": "binance",
"name": "Binance",
"symbol_count": 1500,
"status": 1
},
{
"id": 2,
"code": "huobi",
"name": "Huobi",
"symbol_count": 800,
"status": 1
}
]
}
Code Example
// cURL example
curl -X GET "https://ziario.com/api/v1/exchange/list"
// PHP example
$response = file_get_contents("https://ziario.com/api/v1/exchange/list");
$data = json_decode($response, true);
if ($data["code"] == 200) {
foreach ($data["data"] as $exchange) {
echo $exchange["name"] . ": " . $exchange["symbol_count"] . " trading pairs\n";
}
}
// JavaScript example
fetch("https://ziario.com/api/v1/exchange/list")
.then(response => response.json())
.then(data => {
if (data.code === 200) {
data.data.forEach(exchange => {
console.log(`${exchange.name}: ${exchange.symbol_count} trading pairs`);
});
}
})
.catch(error => console.error("Error:", error));
// Python example
import requests
response = requests.get("https://ziario.com/api/v1/exchange/list")
data = response.json()
if data["code"] == 200:
for exchange in data["data"]:
print(f"{exchange["name"]}: {exchange["symbol_count"]} trading pairs")