get_currencies
Retrieve a list of supported fiat currencies for displaying cryptocurrency prices on the CSPR.trade decentralized exchange.
Instructions
List supported fiat currencies for price display
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The MCP tool handler for 'get_currencies' which calls the SDK client.
async () => { const currencies = await client.getCurrencies(); return { content: [{ type: 'text' as const, text: JSON.stringify(currencies, null, 2) }] }; }, - packages/mcp/src/tools/market-data.ts:66-74 (registration)The registration of the 'get_currencies' tool on the MCP server.
server.tool( 'get_currencies', 'List supported fiat currencies for price display', {}, async () => { const currencies = await client.getCurrencies(); return { content: [{ type: 'text' as const, text: JSON.stringify(currencies, null, 2) }] }; }, ); - The underlying implementation that fetches currencies via the HTTP client.
async getCurrencies(): Promise<Currency[]> { const response = await this.http.get<ApiResponse<Currency[]>>('/currencies'); return response.data; }