Skip to main content
Glama
zereight

Bithumb MCP Server

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 market sell order by constructing parameters and invoking the Bithumb trade API via requestTrade('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;
    }
  • Input schema for the post_market_sell tool, specifying units (number, quantity to sell) and orderCurrency (string, e.g., BTC) as required fields.
    inputSchema: {
      type: 'object',
      properties: {
        units: { type: 'number', description: 'Quantity to sell' },
        orderCurrency: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' }
      },
      required: ['units', 'orderCurrency']
    }
  • src/index.ts:248-259 (registration)
    Registration of the 'post_market_sell' tool in the MCP server's tools list, 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']
      }
    },
  • Top-level MCP tool handler switch case that invokes the Bithumb API client's 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 for the response of post market sell, extending IBithumbResponse and adding order_id field.
    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