This document was generated automatically. Please see README Generator for more info.
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
✅ | API_KEY | An API key that can be obtained from https://coinmarketcap.com/api/ | string | ||
API_ENDPOINT | An API endpoint for coinmarketcap | string | https://pro-api.coinmarketcap.com/v1/ |
Name | Requests/credits per second | Requests/credits per minute | Requests/credits per hour | Note |
---|---|---|---|---|
free | 30 | 13 | 10k credits/month, 730h in a month, ignoring daily limits since they're soft caps | |
hobbyist | 30 | 54 | ||
startup | 30 | 164 | ||
standard | 60 | 684 | ||
professional | 90 | 4108 |
Required? | Name | Description | Type | Options | Default |
---|---|---|---|---|---|
endpoint | The endpoint to use | string | crypto, dominance, globalmarketcap, historical, marketcap, price, volume | crypto |
globalmarketcap
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | market | quote , to |
The symbol of the currency to query | string |
Request:
{
"data": {
"endpoint": "globalmarketcap",
"market": "BTC"
}
}
dominance
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | market | quote , to |
The symbol of the currency to query | string |
Request:
{
"data": {
"endpoint": "dominance",
"market": "BTC"
}
}
historical
is the only supported name for this endpoint.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | coin , from , sym , symbol |
The symbol of the currency to query | string | ||||
✅ | convert | market , quote , to |
The symbol of the currency to convert to | string | ||||
start | Timestamp (Unix or ISO 8601) to start returning quotes for | string | ||||||
end | Timestamp (Unix or ISO 8601) to stop returning quotes for | string | ||||||
count | The number of interval periods to return results for | number | 10 |
|||||
interval | Interval of time to return data points for | string | 5m |
|||||
cid | The CMC coin ID (optional to use in place of base) | string | ||||||
aux | Optionally specify a comma-separated list of supplemental data fields to return | string | ||||||
skipInvalid | string |
Request:
{
"data": {
"endpoint": "historical",
"base": "ETH",
"convert": "BTC",
"count": 10,
"interval": "5m",
"start": "2021-07-23T14"
}
}
Supported names for this endpoint are: crypto
, marketcap
, price
, volume
.
Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With |
---|---|---|---|---|---|---|---|---|
✅ | base | coin , from , sym , symbol |
The symbol of symbols of the currency to query | string | ||||
✅ | quote | convert , market , to |
The symbol of the currency to convert to | string | ||||
cid | The CMC coin ID (optional to use in place of base) | string | ||||||
slug | The CMC coin ID (optional to use in place of base) | string | ||||||
resultPath | The path to the result within the asset quote in the provider response | string | market_cap , price , volume_24h |
Request:
{
"data": {
"endpoint": "crypto",
"base": "BTC",
"quote": "USD",
"resultPath": "price"
}
}
MIT License