get_batch_quote
Retrieve prices and metadata for multiple cryptocurrency tokens in one request to reduce API calls and streamline blockchain data analysis.
Instructions
Get quotes for multiple tokens in a single request.
Args: tokens: List of token addresses to quote chain: Blockchain network
Returns: Prices and metadata for all requested tokens.
Price: $0.25
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokens | Yes | ||
| chain | No | ethereum |
Implementation Reference
- coinrailz_mcp/__init__.py:463-479 (handler)The `get_batch_quote` tool is defined here, serving as the handler that triggers the Coin Railz 'batch-quote' service call.
@mcp.tool() async def get_batch_quote(tokens: List[str], chain: str = "ethereum") -> str: """ Get quotes for multiple tokens in a single request. Args: tokens: List of token addresses to quote chain: Blockchain network Returns: Prices and metadata for all requested tokens. Price: $0.25 """ payload = {"tokens": tokens, "chain": chain} result = await call_coinrailz_service("batch-quote", payload) return json.dumps(result, indent=2)