idstringzorunlu
Exchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Varsayılan: "binance"
https://api.sandbase.ai/v1/api/coingecko/api-volume-chartGet the historical volume chart data with time in UNIX and trading volume data in BTC based on exchange's ID
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
binance on a line chart.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.
| Name | Type | Required | Description |
|---|---|---|---|
days | string | Yes | Data up to number of days ago. |
id | string | Yes | Exchange ID or derivative exchange ID. *refers to /exchanges/list or /derivatives/exchanges/list. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
[
1793604600000
]
]
| Field | Meaning |
|---|---|
[][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. |
[timestamp, volume] pairs, not an object. Points are in time order.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.$0.008 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
idstringzorunluExchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Varsayılan: "binance"
daysstringzorunluData up to number of days ago.
Varsayılan: "1"
Olası değerler: 1, 7, 14, 30, 90, 180, 365
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
CoinGecko | $0.008 çağrı başına | JSON |
CoinGecko | $0.008 çağrı başına | JSON |
CoinGecko | $0.008 çağrı başına | JSON |
CoinGecko | $0.008 çağrı başına | JSON |
CoinGecko | $0.008 çağrı başına | JSON |
CoinGecko | $0.008 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/coingecko/api-volume-chart adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.008, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: id (string) ve days (1, 7, 14, 30, 90, 180, 365 arasından biri). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. CoinGecko Exchange Volume Chart by ID, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. CoinGecko API erişimi için ayrıca başvuru yapmanız gerekmez.