get_orderbook
Retrieve real-time order book data for cryptocurrency trading pairs on Bithumb exchange to analyze market depth and liquidity for informed trading decisions.
Instructions
Get order book information (Public)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coinCode | Yes | Cryptocurrency symbol (e.g. BTC, ETH) |
Implementation Reference
- src/bitThumb/index.ts:67-71 (handler)The core handler function that executes the logic for fetching the order book from Bithumb's public API endpoint.public async getOrderBook(coinCode: string): Promise<IGetOrderBook> { const param = `${coinCode}_${this.paymentCurrency}`; const res = <IGetOrderBook>await this.requestPublic('orderbook', param); return res; }
- TypeScript interface defining the structure of the order book response (output schema).export interface IGetOrderBook extends IBithumbResponse { data: { timestamp: string; order_currency: string; payment_currency: string; bids: IBidAsks[]; asks: IBidAsks[]; }; }
- src/index.ts:74-84 (registration)Tool registration in the MCP tools list, including name, description, and input schema for validation.{ name: 'get_orderbook', description: 'Get order book information (Public)', inputSchema: { type: 'object', properties: { coinCode: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' } }, required: ['coinCode'] } },
- src/index.ts:300-302 (registration)Dispatch handler in the CallToolRequestSchema switch case that routes the tool call to the bitThumbApi.getOrderBook method.case 'get_orderbook': result = await this.bithumbApi.getOrderBook(args.coinCode as string); break;