cmc100IndexLatest
Retrieve the latest CoinMarketCap 100 Index value, its constituents, and their weights for informed cryptocurrency market analysis and decision-making.
Instructions
Returns the lastest CoinMarketCap 100 Index value, constituents, and constituent weights.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- index.js:520-529 (registration)Registration of the 'cmc100IndexLatest' tool using server.tool, including description, empty schema, and inline handler function.server.tool("cmc100IndexLatest", "Returns the lastest CoinMarketCap 100 Index value, constituents, and constituent weights.", {}, async () => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/index/cmc100-latest') return formatResponse(data) }) } )
- index.js:523-528 (handler)Inline handler function that executes the tool logic by calling handleEndpoint with an inner async function that makes an API request to '/v3/index/cmc100-latest' and formats the response.async () => { return handleEndpoint(async () => { const data = await makeApiRequest(apiKey, '/v3/index/cmc100-latest') return formatResponse(data) }) }
- index.js:522-522 (schema)Empty schema object, indicating the tool takes no input parameters.{},