Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

CoinGecko Exchange Volume Chart by ID

API दस्तावेज़
https://api.sandbase.ai/v1/api/coingecko/api-volume-chart

Get the historical volume chart data with time in UNIX and trading volume data in BTC based on exchange's ID

मूल्य
$0.008USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
2 आवश्यक · 0 वैकल्पिक

प्लेग्राउंड

इनपुट
Exchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Data up to number of days ago.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

CoinGecko Exchange Volume Chart by ID API

Returns a time series of trading volume for one exchange on CoinGecko. It needs an exchange id and a days value, and returns volume in BTC for each timestamp.

Use cases

  • Plot the recent trading volume of an exchange such as binance on a line chart.
  • Compare the volume trend of two exchanges over the last 7 or 30 days.
  • Detect volume spikes or drops on an exchange by checking changes between data points.
  • Feed daily or weekly exchange volume into a report or dashboard.

Request

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

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

Parameters

NameTypeRequiredDescription
daysstringYesData up to number of days ago.
idstringYesExchange ID or derivative exchange ID. *refers to /exchanges/list or /derivatives/exchanges/list.

Example response

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

[
  [
    1793604600000
  ]
]

Response fields

FieldMeaning
[][0]Timestamp of the data point. The value is a UNIX time in milliseconds, for example 1793604600000.
[][1]Trading volume of the exchange at that timestamp, returned as a string, for example "50120.06192454506". The API description states the volume is in BTC. Parse it as a number before doing math.

Notes

  • The response is a plain array of [timestamp, volume] pairs, not an object. Points are in time order.
  • Get a valid id from CoinGecko Exchanges List (ID Map). Derivative exchange IDs also work.
  • days must be one of 1, 7, 14, 30, 90, 180 or 365. Send it as a string.
  • For exchange details such as name and country, call CoinGecko Exchange Data by ID.

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 Volume Chart by ID API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/coingecko/api-volume-chart पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

CoinGecko Exchange Volume Chart by ID API की लागत कितनी है?

$0.008 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

CoinGecko Exchange Volume Chart by ID API कौन-से parameters स्वीकार करती है?

आवश्यक: id (string) और days (1, 7, 14, 30, 90, 180, 365 में से एक)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

CoinGecko Exchange Volume Chart by ID API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक CoinGecko developer account या API key चाहिए?

नहीं। CoinGecko Exchange Volume Chart by ID SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से CoinGecko API access के लिए आवेदन करने की आवश्यकता नहीं है।