crypto_get_signal
Analyze cryptocurrency trading signals with confidence scores, momentum indicators, and sentiment data to inform investment decisions. Powered by x402 USDC micropayments on Base.
Instructions
Get enriched trading signal (BUY/HOLD/SELL) with confidence score, momentum indicators, and sentiment data. Costs $0.05 USDC per request via x402 on Base.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Crypto symbol (e.g., BTC, ETH, SOL) |
Implementation Reference
- src/index.ts:71-86 (handler)Registration and implementation of the "crypto_get_signal" tool. It fetches signal data from the CRYPTO_API and returns it as a JSON-formatted string.
server.registerTool( "crypto_get_signal", { title: "Get Crypto Trading Signal", description: `Get enriched trading signal (BUY/HOLD/SELL) with confidence score, momentum indicators, and sentiment data. Costs $0.05 USDC per request via x402 on Base.`, inputSchema: { symbol: z.string().min(1).max(10).describe("Crypto symbol (e.g., BTC, ETH, SOL)"), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true }, }, async ({ symbol }) => { const data = await apiFetch(`${CRYPTO_API}/api/v1/signal/${symbol.toUpperCase()}`); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] }; } );