Tips
- You may obtain the asset platform and contract address via several ways:
- refers to respective coin page and find ‘contract address’.
- refers to
/coins/list
endpoint (include platform = true
).
- You may flag to include more data such as market cap, 24hr volume, 24hr change, last updated time etc.
Note
- The endpoint returns the global average price of the coin that is aggregated across all active exchanges on CoinGecko.
- You may cross-check the price on CoinGecko and learn more about our price methodology here.
- Cache/Update Frequency: every 60 seconds for Public API.
- Every 20 seconds for Pro-API (Analyst, Lite, Pro, Enterprise).
Authorizations
Path Parameters
asset platform's ID
*refers to /asset_platforms
.
Example:
"ethereum"
Query Parameters
the contract address of a token
target currency of coins, comma-separated if querying more than 1 currency.
*refers to /simple/supported_vs_currencies
.
include market capitalization, default: false
include 24hr volume, default: false
include 24hr change default: false
include last updated price time in UNIX , default: false
decimal place for currency price value
Available options:
full
, 0
, 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 10
, 11
, 12
, 13
, 14
, 15
, 16
, 17
, 18
Response
200 - application/json
price(s) of cryptocurrency
The response is of type object
.