Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

CoinGecko Coin Price by Token Addresses

APIドキュメント
https://api.sandbase.ai/v1/api/coingecko/simple-token-price

Get one or more token prices using their token contract addresses

料金
$0.008USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 3 件 · 任意 5 件

プレイグラウンド

入力
Asset platform's ID. *refers to [`/asset_platforms`](/reference/asset-platforms-list)
Token contract addresses, comma-separated if querying more than 1 token
Target currency of coins, comma-separated if querying more than 1 currency. *refers to [`/simple/supported_vs_currencies`](/reference/simple-supported-currencies)
Include 24-hour change percentage. Default: false
Include 24-hour trading volume. Default: false
Include last updated price time as a UNIX timestamp. Default: false
Include market capitalization. Default: false
Decimal places for currency price value
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

CoinGecko Coin Price by Token Addresses API

Get one or more token prices using their token contract addresses

The response is the official CoinGecko API response, unchanged.

Request

curl -X POST "https://api.sandbase.ai/v1/api/coingecko/simple-token-price" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "ethereum", "contract_addresses": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "vs_currencies": "usd"}'

Parameters

NameTypeRequiredDescription
idstringYesAsset platform's ID. *refers to /asset_platforms
contract_addressesstringYesToken contract addresses, comma-separated if querying more than 1 token
include_24hr_changebooleanNoInclude 24-hour change percentage. Default: false
include_24hr_volbooleanNoInclude 24-hour trading volume. Default: false
include_last_updated_atbooleanNoInclude last updated price time as a UNIX timestamp. Default: false
include_market_capbooleanNoInclude market capitalization. Default: false
precisionstringNoDecimal places for currency price value
vs_currenciesstringYesTarget currency of coins, comma-separated if querying more than 1 currency. *refers to [/simple/supported_vs_currencies](/reference/simple-supported-currencie

Pricing

Flat price per call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
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

質問

FAQ

CoinGecko Coin Price by Token Addresses API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/coingecko/simple-token-price に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

CoinGecko Coin Price by Token Addresses API の料金はいくらですか?

1回あたり $0.008、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

CoinGecko Coin Price by Token Addresses API はどのパラメータを受け付けますか?

必須: id (string), contract_addresses (string) と vs_currencies (string)。 任意: include_24hr_change (boolean), include_24hr_vol (boolean), include_last_updated_at (boolean), include_market_cap (boolean) と precision(full, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

CoinGecko Coin Price by Token Addresses API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。

CoinGecko の開発者アカウントまたは API key は必要ですか?

いいえ。CoinGecko Coin Price by Token Addresses は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。CoinGecko の API アクセスを別途申請する必要はありません。