idstringrequerido
Exchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Valor predeterminado: "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
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
idstringrequeridoExchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Valor predeterminado: "binance"
daysstringrequeridoData up to number of days ago.
Valor predeterminado: "1"
Valores posibles: 1, 7, 14, 30, 90, 180, 365
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
CoinGecko | $0.008 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/coingecko/api-volume-chart con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.008 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: id (string) y days (una de 1, 7, 14, 30, 90, 180, 365). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. CoinGecko Exchange Volume Chart by ID funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de CoinGecko por separado.