cmc100IndexHistorical
Access historical CoinMarketCap 100 Index values for specific intervals like 5m, 15m, or daily. Use time_start, time_end, and count parameters to retrieve precise market data.
Instructions
Returns an interval of historic CoinMarketCap 100 Index values based on the interval parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| interval | No | ||
| time_end | No | ||
| time_start | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"count": {
"type": "string"
},
"interval": {
"enum": [
"5m",
"15m",
"daily"
],
"type": "string"
},
"time_end": {
"type": "string"
},
"time_start": {
"type": "string"
}
},
"type": "object"
}
Implementation Reference
- index.js:511-516 (handler)The handler function for the cmc100IndexHistorical tool. It wraps handleEndpoint which calls makeApiRequest to the '/v3/index/cmc100-historical' endpoint with the provided params and formats the response using formatResponse.async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/index/cmc100-historical', params) return formatResponse(data) }) }
- index.js:505-510 (schema)Input schema definition using Zod validators for the tool parameters: time_start, time_end, count, and interval.{ time_start: z.string().optional(), time_end: z.string().optional(), count: z.string().optional(), interval: z.enum(['5m', '15m', 'daily']).optional() },
- index.js:503-517 (registration)Registration of the cmc100IndexHistorical tool via server.tool(), specifying the name, description, input schema, and inline handler function.server.tool("cmc100IndexHistorical", "Returns an interval of historic CoinMarketCap 100 Index values based on the interval parameter.", { time_start: z.string().optional(), time_end: z.string().optional(), count: z.string().optional(), interval: z.enum(['5m', '15m', 'daily']).optional() }, async (params) => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/index/cmc100-historical', params) return formatResponse(data) }) } )