Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

CoinGecko Exchange Volume Chart by ID

Docs 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

Prix
$0.008USD / appel
Méthode
POST
Réponse
JSON
Paramètres
2 obligatoires · 0 facultatifs

Bac à sable

Entrée
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.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
CoinGecko$0.008 par appelJSON
CoinGecko$0.008 par appelJSON
CoinGecko$0.008 par appelJSON
CoinGecko$0.008 par appelJSON
CoinGecko$0.008 par appelJSON
CoinGecko$0.008 par appelJSON

Questions

FAQ

Comment utiliser l’API CoinGecko Exchange Volume Chart by ID ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/coingecko/api-volume-chart avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API CoinGecko Exchange Volume Chart by ID ?

$0.008 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API CoinGecko Exchange Volume Chart by ID accepte-t-elle ?

Obligatoire : id (string) et days (l’un de 1, 7, 14, 30, 90, 180, 365). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API CoinGecko Exchange Volume Chart by ID ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API CoinGecko ?

Non. CoinGecko Exchange Volume Chart by ID fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API CoinGecko séparément.