idstringआवश्यक
Exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list).
डिफ़ॉल्ट: "binance"
https://api.sandbase.ai/v1/api/coingecko/exchanges-by-idGet exchange's data (name, year established, country, ...), exchange volume in BTC and top 100 tickers based on exchange's ID
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
trust_score, trust_score_rank and trade_volume_24h_btc.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.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Exchange ID. *refers to /exchanges/list. |
dex_pair_format | string | No | Set to symbol to display DEX pair base and target as symbols. Default: contract_address |
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
}
| Field | Meaning |
|---|---|
name / country / year_established / centralized | Exchange name, country, the year it was established, and whether it is a centralized exchange (true) or not. |
trade_volume_24h_btc | Trading volume of the exchange over 24 hours, shown in BTC. |
trust_score / trust_score_rank | The exchange's trust score and its rank by that score. |
coins / pairs | Number of coins and number of trading pairs listed on the exchange. |
public_notice / alert_notice | Notices about the exchange. They can be empty strings, and long text may be cut. |
tickers[].base / tickers[].target | The base and target of each trading pair, for example BTC and USDT. |
tickers[].last / tickers[].volume | Last traded value of the pair and its trading volume. |
tickers[].converted_last / tickers[].converted_volume | Last traded value and volume converted to btc, eth and usd. |
tickers[].coin_id / tickers[].target_coin_id | CoinGecko coin IDs for the base and target coins. |
status_updates[].created_at / status_updates[].description | Time and text of a past status update posted for the exchange. |
id values from CoinGecko Exchanges List (ID Map).dex_pair_format to symbol to show DEX pair base and target as symbols instead of contract addresses.last_traded_at and status_updates[].created_at use ISO 8601 format.coin_id values from tickers with CoinGecko Coin Data by ID to look up each coin. For a longer ticker list, call CoinGecko Exchange Tickers by ID.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
idstringआवश्यकExchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list).
डिफ़ॉल्ट: "binance"
dex_pair_formatstringSet to `symbol` to display DEX pair base and target as symbols. Default: `contract_address`
संभावित मान: contract_address, symbol
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| 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 |
प्रश्न
https://api.sandbase.ai/v1/api/coingecko/exchanges-by-id पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.008 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: id (string)। वैकल्पिक: dex_pair_format (contract_address, symbol में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। CoinGecko Exchange Data by ID SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से CoinGecko API access के लिए आवेदन करने की आवश्यकता नहीं है।