Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

CoinGecko Exchange Data by ID

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

料金
$0.008USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 1 件

プレイグラウンド

入力
Exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list).
Set to `symbol` to display DEX pair base and target as symbols. Default: `contract_address`
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

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.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
CoinGecko$0.008 / 回JSON
CoinGecko$0.008 / 回JSON
CoinGecko$0.008 / 回JSON
CoinGecko$0.008 / 回JSON
CoinGecko$0.008 / 回JSON
CoinGecko$0.008 / 回JSON

質問

FAQ

CoinGecko Exchange Data by ID API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/coingecko/exchanges-by-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

CoinGecko Exchange Data by ID API の料金はいくらですか?

1回あたり $0.008、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

CoinGecko Exchange Data by ID API はどのパラメータを受け付けますか?

必須: id (string)。 任意: dex_pair_format(contract_address, symbol のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

CoinGecko Exchange Data by ID API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

CoinGecko の開発者アカウントまたは API key は必要ですか?

いいえ。CoinGecko Exchange Data by ID は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。CoinGecko の API アクセスを別途申請する必要はありません。