Skip to main content
Glama

post_market_buy

Execute a market buy order on Bithumb cryptocurrency exchange to purchase specified cryptocurrency units at current market prices for trading operations.

Instructions

Place a market buy order (Private)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsYesQuantity to buy
orderCurrencyYesCryptocurrency symbol (e.g. BTC, ETH)

Implementation Reference

  • The main handler function implementing the post_market_buy tool logic. It constructs parameters for a market buy order and delegates to the internal requestTrade method using the 'market_buy' endpoint.
    public async postMarketBuy( units: number, orderCurrency: string, ): Promise<IPostMarketBuy> { const param = { units, order_currency: orderCurrency, }; const res = <IPostMarketBuy>await this.requestTrade('market_buy', param); return res; }
  • src/index.ts:237-246 (registration)
    MCP tool registration including name, description, and input schema for 'post_market_buy'.
    name: 'post_market_buy', description: 'Place a market buy order (Private)', inputSchema: { type: 'object', properties: { units: { type: 'number', description: 'Quantity to buy' }, orderCurrency: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' } }, required: ['units', 'orderCurrency'] }
  • Dispatcher in the CallTool handler that invokes the bithumbApi.postMarketBuy method.
    case 'post_market_buy': result = await this.bithumbApi.postMarketBuy(args.units as number, args.orderCurrency as string); break;
  • TypeScript interface defining the expected response structure for postMarketBuy (output schema).
    import { IBithumbResponse } from './bithumb-response.interface.js'; export interface IPostMarketBuy extends IBithumbResponse { order_id: string; }
  • Input schema/JSON Schema for validating tool arguments.
    inputSchema: { type: 'object', properties: { units: { type: 'number', description: 'Quantity to buy' }, orderCurrency: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' } }, required: ['units', 'orderCurrency']

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