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
| Name | Required | Description | Default |
|---|---|---|---|
| units | Yes | Quantity to sell | |
| orderCurrency | Yes | Cryptocurrency symbol (e.g. BTC, ETH) |
Implementation Reference
- src/bitThumb/index.ts:298-309 (handler)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'] } },
- src/index.ts:381-383 (handler)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; }