get_orderbook
Retrieve real-time order book data for cryptocurrencies on Bithumb exchange to analyze market depth and trading opportunities.
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)Core handler function that fetches the order book data 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; }
- src/index.ts:75-84 (registration)Tool registration including name, description, and input schema for listTools.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 (handler)MCP server handler that dispatches the get_orderbook tool call to the Bithumb API instance.case 'get_orderbook': result = await this.bithumbApi.getOrderBook(args.coinCode as string); break;
- TypeScript interface defining the output structure of the getOrderBook response.export interface IGetOrderBook extends IBithumbResponse { data: { timestamp: string; order_currency: string; payment_currency: string; bids: IBidAsks[]; asks: IBidAsks[]; }; }