GET /pairs
curl --request GET \
--url https://internal-api.binibit.com/api/marketdata/getcoingecko/pairsimport requests
url = "https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data.market_pairs": [
{}
],
"market_pair": "<string>",
"category": "<string>",
"base": {},
"quote": {}
}Aggregator Compatibility
GET /pairs
Directory of every active spot trading pair on Binibit.
GET
/
api
/
marketdata
/
getcoingecko
/
pairs
GET /pairs
curl --request GET \
--url https://internal-api.binibit.com/api/marketdata/getcoingecko/pairsimport requests
url = "https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data.market_pairs": [
{}
],
"market_pair": "<string>",
"category": "<string>",
"base": {},
"quote": {}
}Description
Returns the full catalog of trading pairs Binibit offers, including base/quote metadata. Use it to discover which markets exist before calling/tickers, /orderbook, or /historical_trades.
Unlike /tickers, this endpoint lists every configured pair, including those with zero 24-hour volume.
Parameters
This endpoint takes no query parameters.Response
An object with adata.market_pairs array. Each element describes one pair.
Market pair object schema
Example request
curl https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs
const res = await fetch(
"https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs"
);
const { data } = await res.json();
const { market_pairs } = data;
import requests
market_pairs = requests.get(
"https://internal-api.binibit.com/api/marketdata/getcoingecko/pairs"
).json()["data"]["market_pairs"]
Example response
{
"data": {
"market_pairs": [
{
"market_pair": "BTC/USDT",
"category": "spot",
"base": { "symbol": "BTC", "type": "cryptocurrency" },
"quote": { "symbol": "USDT", "type": "cryptocurrency" }
},
{
"market_pair": "ETH/BTC",
"category": "spot",
"base": { "symbol": "ETH", "type": "cryptocurrency" },
"quote": { "symbol": "BTC", "type": "cryptocurrency" }
}
]
}
}
Notes
- The pair label uses a
/separator (BTC/USDT). Other endpoints identify pairs withticker_idusing an_separator (BTC_USDT). See ticker_id format. /pairslists all configured markets;/tickersreturns only pairs with live 24-hour volume.
Related
Ticker statistics
24-hour price and volume for active pairs.
Order book
Bid/ask depth for a specific pair.
