get_ticker
Retrieve real-time cryptocurrency price data from Bithumb exchange for specific coins like BTC or ETH to monitor market movements.
Instructions
Get cryptocurrency ticker information (Public)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coinCode | Yes | Cryptocurrency symbol (e.g. BTC, ETH) |
Implementation Reference
- src/bitThumb/index.ts:57-61 (handler)Core handler function that executes the get_ticker tool logic by making a public API request to Bithumb's ticker endpoint.public async getTicker(coinCode: string): Promise<IGetTicker> { const param = `${coinCode}_${this.paymentCurrency}`; const res = <IGetTicker>await this.requestPublic('ticker', param); return res; }
- src/index.ts:64-72 (registration)MCP tool registration defining the name, description, and input schema for get_ticker.name: 'get_ticker', description: 'Get cryptocurrency ticker information (Public)', inputSchema: { type: 'object', properties: { coinCode: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' } }, required: ['coinCode'] }
- src/index.ts:297-298 (handler)Dispatch handler in MCP CallToolRequestSchema that invokes the getTicker method with the provided coinCode argument.case 'get_ticker': result = await this.bithumbApi.getTicker(args.coinCode as string);
- TypeScript interface defining the output schema for the ticker response.export interface IGetTicker extends IBithumbResponse { data: Ticker; }