Skip to main content
Glama

post_market_sell

Execute a market sell order on Bithumb cryptocurrency exchange to sell specified cryptocurrency units at current market prices.

Instructions

Place a market sell order (Private)

Input Schema

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

Implementation Reference

  • Core handler function that executes the 'post_market_sell' tool by preparing parameters and calling the Bithumb trade API endpoint 'market_sell'.
    public async postMarketSell( units: number, orderCurrency: string, ): Promise<IPostMarketSell> { const param = { units, order_currency: orderCurrency, }; const res = <IPostMarketSell>await this.requestTrade('market_sell', param); return res; }
  • src/index.ts:248-259 (registration)
    Registration of the 'post_market_sell' tool in the MCP server, including name, description, and input schema.
    { name: 'post_market_sell', description: 'Place a market sell order (Private)', inputSchema: { type: 'object', properties: { units: { type: 'number', description: 'Quantity to sell' }, orderCurrency: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' } }, required: ['units', 'orderCurrency'] } },
  • MCP tool dispatch handler that invokes the bitThumbApi.postMarketSell method with parsed arguments.
    case 'post_market_sell': result = await this.bithumbApi.postMarketSell(args.units as number, args.orderCurrency as string); break;
  • TypeScript interface defining the response schema for postMarketSell (output schema).
    export interface IPostMarketSell extends IBithumbResponse { order_id: string; }

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