Sand AISand AI MAGI-2ตอนนี้ MAGI-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 / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
3 จำเป็น · 5 ไม่บังคับ

Playground

อินพุต
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
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ CoinGecko Coin Price by Token Addresses API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/coingecko/simple-token-price โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

CoinGecko Coin Price by Token Addresses API ราคาเท่าไร?

$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 ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ CoinGecko ไหม?

ไม่จำเป็น CoinGecko Coin Price by Token Addresses ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง CoinGecko API แยกต่างหาก