Crypto Intelligence Statistics
crypto_statsRetrieve statistics on crypto intelligence signals, executions, active networks, protocols, and date range via a free endpoint.
Instructions
Get statistics about the crypto intelligence dataset: total signals, total executions, networks and protocols active, date range. Free endpoint. Source: Liquidationbot multi-chain telemetry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/crypto.ts:243-264 (handler)The async handler function for the 'crypto_stats' tool. It calls apiGet to fetch data from '/api/v1/crypto/stats' and returns the JSON response. No input parameters are required (empty inputSchema).
async () => { const res = await apiGet<CryptoStatsResponse>("/api/v1/crypto/stats"); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } return { content: [ { type: "text" as const, text: JSON.stringify(res.data, null, 2) }, ], }; }, ); - src/tools/crypto.ts:233-264 (registration)Registration of the 'crypto_stats' tool using server.registerTool() with the name 'crypto_stats', a description, an empty inputSchema, and the handler function.
server.registerTool( "crypto_stats", { title: "Crypto Intelligence Statistics", description: "Get statistics about the crypto intelligence dataset: total signals, " + "total executions, networks and protocols active, date range. Free endpoint. " + "Source: Liquidationbot multi-chain telemetry.", inputSchema: {}, }, async () => { const res = await apiGet<CryptoStatsResponse>("/api/v1/crypto/stats"); if (!res.ok) { return { content: [ { type: "text" as const, text: `API error (${res.status}): ${JSON.stringify(res.data)}`, }, ], isError: true, }; } return { content: [ { type: "text" as const, text: JSON.stringify(res.data, null, 2) }, ], }; }, ); - src/tools/crypto.ts:25-32 (schema)The TypeScript interface CryptoStatsResponse defines the response shape: dataset, source, update_frequency, networks, products, and stats.
interface CryptoStatsResponse { dataset: string; source: string; update_frequency: string; networks: string[]; products: string[]; stats: Record<string, unknown>; } - src/client.ts:44-47 (helper)The apiGet helper function used by the handler to make HTTP GET requests to the Verilex API.
export async function apiGet<T = unknown>( path: string, params?: Record<string, string | number | undefined>, ): Promise<ApiResponse<T>> {