Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

CoinGecko Exchange Data by ID

Tài liệu API
https://api.sandbase.ai/v1/api/coingecko/exchanges-by-id

Get exchange's data (name, year established, country, ...), exchange volume in BTC and top 100 tickers based on exchange's ID

Giá
$0.008USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 1 tùy chọn

Phòng thử nghiệm

Đầu vào
Exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list).
Set to `symbol` to display DEX pair base and target as symbols. Default: `contract_address`
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

CoinGecko Exchange Data by ID API

Returns profile data for one crypto exchange on CoinGecko, including its country, year established, 24-hour BTC trading volume and trust score. It also returns a list of the exchange's tickers with last traded values and volumes. The input is an exchange id, such as binance.

Use cases

  • Show an exchange profile page with its name, logo, country, description and social links.
  • Compare exchanges by trust_score, trust_score_rank and trade_volume_24h_btc.
  • List the trading pairs on an exchange with last traded values converted to BTC, ETH and USD.
  • Show an exchange's public notice and past status updates in a monitoring dashboard.

Request

curl -X POST "https://api.sandbase.ai/v1/api/coingecko/exchanges-by-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "binance"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
idstringYesExchange ID. *refers to /exchanges/list.
dex_pair_formatstringNoSet to symbol to display DEX pair base and target as symbols. Default: contract_address

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "alert_notice": "",
  "centralized": true,
  "coins": 521,
  "country": "Cayman Islands",
  "description": "One of the world’s largest cryptocurrency exchanges by trading volume, offering …",
  "facebook_url": "https://www.facebook.com/binanceexchange",
  "has_trading_incentive": false,
  "image": "https://coin-images.coingecko.com/markets/images/52/small/binance.jpg?1706864274",
  "name": "Binance",
  "other_url_1": "https://medium.com/binanceexchange",
  "other_url_2": "https://steemit.com/@binanceexchange",
  "pairs": 1377
}

Response fields

FieldMeaning
name / country / year_established / centralizedExchange name, country, the year it was established, and whether it is a centralized exchange (true) or not.
trade_volume_24h_btcTrading volume of the exchange over 24 hours, shown in BTC.
trust_score / trust_score_rankThe exchange's trust score and its rank by that score.
coins / pairsNumber of coins and number of trading pairs listed on the exchange.
public_notice / alert_noticeNotices about the exchange. They can be empty strings, and long text may be cut.
tickers[].base / tickers[].targetThe base and target of each trading pair, for example BTC and USDT.
tickers[].last / tickers[].volumeLast traded value of the pair and its trading volume.
tickers[].converted_last / tickers[].converted_volumeLast traded value and volume converted to btc, eth and usd.
tickers[].coin_id / tickers[].target_coin_idCoinGecko coin IDs for the base and target coins.
status_updates[].created_at / status_updates[].descriptionTime and text of a past status update posted for the exchange.

Notes

Pricing

$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
CoinGecko$0.008 mỗi lần gọiJSON
CoinGecko$0.008 mỗi lần gọiJSON
CoinGecko$0.008 mỗi lần gọiJSON
CoinGecko$0.008 mỗi lần gọiJSON
CoinGecko$0.008 mỗi lần gọiJSON
CoinGecko$0.008 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API CoinGecko Exchange Data by ID?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/coingecko/exchanges-by-id với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API CoinGecko Exchange Data by ID có giá bao nhiêu?

$0.008 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API CoinGecko Exchange Data by ID chấp nhận những tham số nào?

Bắt buộc: id (string). Tùy chọn: dex_pair_format (một trong số contract_address, symbol). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API CoinGecko Exchange Data by ID trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của CoinGecko không?

Không. CoinGecko Exchange Data by ID chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của CoinGecko.