Exchange Volume Chart by ID
curl --request GET \
--url https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
[
1779719400000,
"76327.6889417086372104"
],
[
1779720000000,
"76335.761747668369059"
]
]CoinGecko
Exchange Volume Chart by ID
To query the historical volume chart data with time in UNIX and trading volume data in BTC based on exchange’s ID
This endpoint allows you to query the historical volume chart data with time in UNIX and trading volume data in BTC based on exchange’s ID
GET
https://api.aisa.one
/
apis
/
v1
/
coingecko
/
api
/
{id}
/
volume_chart
Exchange Volume Chart by ID
curl --request GET \
--url https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
[
1779719400000,
"76327.6889417086372104"
],
[
1779720000000,
"76335.761747668369059"
]
]请求规范
- 方法与路径: GET /apis/v1/coingecko/api/{id}/volume_chart
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/coingecko/api/{id}/volume_chart - id: path; 必填
- days: query; 必填
{
"operationId": "any_coingecko_apis_v1_coingecko_api_id_volume_chart",
"method": "GET",
"path": "/apis/v1/coingecko/api/{id}/volume_chart",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "Exchange ID or derivative exchange ID. \n*refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).",
"in": "path",
"name": "id",
"required": true,
"schema": {
"default": "binance",
"type": "string"
}
},
{
"description": "Data up to number of days ago.",
"in": "query",
"name": "days",
"required": true,
"schema": {
"default": "1",
"enum": [
"1",
"7",
"14",
"30",
"90",
"180",
"365"
],
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
公开参考价格:每次成功请求 $0.008 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
路径参数
Exchange ID or derivative exchange ID.
*refers to /exchanges/list or /derivatives/exchanges/list.
响应
Exchange volume chart data