Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
API_KEY | An optional API key for the Pro API | |||
API_ENDPOINT | The HTTP URL to retrieve data from |
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
endpoint | The endpoint to use | crypto, globalmarketcap, dominance, marketcap, volume, coins | price |
Supported names for this endpoint are: crypto
, crypto-batched
, batched
, batch
, price
Query the crypto price from Coingecko
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
(✅ if not using base ) |
coinid |
The CoinGecko id or array of ids of the coin(s) to query (Note: because of current limitations to use a dummy base will need to be supplied) |
See list here | |
(✅ if not using coinid ) |
base , from , or coin |
The symbol or array of symbols of the currency to query | ↑ | |
✅ | quote , to , or market |
The symbol of the currency to convert to | ↑ | |
overrides |
If base provided is found in overrides, the coin id specified in overrides will be used |
Format |
{
"data": {
"base": "ETH",
"quote": "USD"
}
}
{
"data": {
"result": 4226.71
},
"result": 4226.71,
"statusCode": 200,
"timestamps": {
"providerDataReceivedUnixMs": 1652198967193,
"providerDataRequestedUnixMs": 1652198967193
}
}
Query the global market cap from Coingecko
Supported names for this endpoint are: globalmarketcap
, total_market_cap
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | market , to , or quote |
The ticker of the coin to query | Supported tickers |
{
"data": {
"endpoint": "globalmarketcap",
"market": "ETH"
}
}
{
"data": {
"result": 2744386468602.4453
},
"result": 2744386468602.4453,
"statusCode": 200,
"timestamps": {
"providerDataReceivedUnixMs": 1652198967193,
"providerDataRequestedUnixMs": 1652198967193,
"providerIndicatedTimeUnixMs": 1635189786000
}
}
Query the market dominance percentage from Coingecko
Supported names for this endpoint are: dominance
, market_cap_percentage
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
✅ | market , to , or quote |
The ticker of the coin to query | Supported tickers |
{
"data": {
"endpoint": "dominance",
"market": "ETH"
}
}
{
"data": {
"result": 18.127134683884314
},
"result": 18.127134683884314,
"statusCode": 200,
"timestamps": {
"providerDataReceivedUnixMs": 1652198967193,
"providerDataRequestedUnixMs": 1652198967193,
"providerIndicatedTimeUnixMs": 1635189786000
}
}
Query the Market Cap for the requested assets
Supported names for this endpoint are: marketcap
, crypto-marketcap
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
(✅ if not using base ) |
coinid |
The CoinGecko id of the coin to query | See list here | |
(✅ if not using coinid ) |
base , from , or coin |
The symbol of the currency to query | ↑ | |
✅ | quote , to , or market |
The symbol of the currency to fecth market cap | ↑ | |
overrides |
If base provided is found in overrides, the coin id specified in overrides will be used |
Format |
{
"data": {
"endpoint": "marketcap",
"base": "ETH",
"quote": "USD"
}
}
{
"data": {
"result": 499351414399.08246
},
"result": 499351414399.08246,
"statusCode": 200,
"timestamps": {
"providerDataReceivedUnixMs": 1652198967193,
"providerDataRequestedUnixMs": 1652198967193
}
}
Query the volume for the requested assets
Supported names for this endpoint are: volume
, crypto-volume
Required? | Name | Description | Options | Defaults to |
---|---|---|---|---|
(✅ if not using base ) |
coinid |
The CoinGecko id of the coin to query | See list here | |
(✅ if not using coinid ) |
base , from , or coin |
The symbol of the currency to query | ↑ | |
✅ | quote , to , or market |
The symbol of the currency to fecth market cap | ↑ | |
overrides |
If base provided is found in overrides, the coin id specified in overrides will be used |
Format |
{
"data": {
"endpoint": "volume",
"base": "ETH",
"quote": "USD"
}
}
{
"data": {
"result": 17345604238.153397
},
"result": 17345604238.153397,
"statusCode": 200,
"timestamps": {
"providerDataReceivedUnixMs": 1652198967193,
"providerDataRequestedUnixMs": 1652198967193
}
}
Supported names for this endpoint are: coins
.
There are no input parameters for this endpoint.
{
"data": {
"endpoint": "coins"
}
}