idstringobrigatório
Exchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Padrão: "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
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento 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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
idstringobrigatórioExchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
Padrão: "binance"
daysstringobrigatórioData up to number of days ago.
Padrão: "1"
Valores possíveis: 1, 7, 14, 30, 90, 180, 365
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
CoinGecko | $0.008 por chamada | JSON |
CoinGecko | $0.008 por chamada | JSON |
CoinGecko | $0.008 por chamada | JSON |
CoinGecko | $0.008 por chamada | JSON |
CoinGecko | $0.008 por chamada | JSON |
CoinGecko | $0.008 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/coingecko/api-volume-chart com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.008 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: id (string) e days (um de 1, 7, 14, 30, 90, 180, 365). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. CoinGecko Exchange Volume Chart by ID funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do CoinGecko separadamente.