Skip to main content
Glama

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
NameRequiredDescriptionDefault
coinCodeYesCryptocurrency symbol (e.g. BTC, ETH)

Implementation Reference

  • 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;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zereight/bithumb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server