idstring必須
Exchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
デフォルト: "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
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
idstring必須Exchange ID or derivative exchange ID. *refers to [`/exchanges/list`](/reference/exchanges-list) or [`/derivatives/exchanges/list`](/reference/derivatives-exchanges-list).
デフォルト: "binance"
daysstring必須Data up to number of days ago.
デフォルト: "1"
指定可能な値: 1, 7, 14, 30, 90, 180, 365
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
CoinGecko | $0.008 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/coingecko/api-volume-chart に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.008、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: id (string) と days(1, 7, 14, 30, 90, 180, 365 のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。CoinGecko Exchange Volume Chart by ID は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。CoinGecko の API アクセスを別途申請する必要はありません。