Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

CoinGecko Exchange Volume Chart by ID

Documentazione 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

Prezzo
$0.008USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
2 obbligatori · 0 opzionali

Playground

Input
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.
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README 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.

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
CoinGecko$0.008 per chiamataJSON
CoinGecko$0.008 per chiamataJSON
CoinGecko$0.008 per chiamataJSON
CoinGecko$0.008 per chiamataJSON
CoinGecko$0.008 per chiamataJSON
CoinGecko$0.008 per chiamataJSON

Domande

FAQ

Come uso l'API CoinGecko Exchange Volume Chart by ID?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/coingecko/api-volume-chart con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API CoinGecko Exchange Volume Chart by ID?

$0.008 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API CoinGecko Exchange Volume Chart by ID?

Richiesti: id (string) e days (uno tra 1, 7, 14, 30, 90, 180, 365). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API CoinGecko Exchange Volume Chart by ID?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API CoinGecko?

No. CoinGecko Exchange Volume Chart by ID funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API CoinGecko.