post_place
Place limit buy or sell orders on the Bithumb cryptocurrency exchange by specifying currency, quantity, price, and order type.
Instructions
Place a limit order (buy/sell) (Private)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderCurrency | Yes | Cryptocurrency symbol (e.g. BTC, ETH) | |
| units | Yes | Order quantity | |
| price | Yes | Order price | |
| type | Yes | Order type (bid or ask) |
Implementation Reference
- src/bitThumb/index.ts:244-258 (handler)Core handler function implementing the logic to place a limit order by calling Bithumb's trade API endpoint.public async postPlace( orderCurrency: string, units: number, price: number, type: tradeType, ): Promise<IPostPlace> { const param = { order_currency: orderCurrency, units, price, type, }; const res = <IPostPlace>await this.requestTrade('place', param); return res; }
- src/index.ts:363-370 (handler)MCP server tool call handler that receives 'post_place' invocations and delegates to the ApiBithumb instance.case 'post_place': result = await this.bithumbApi.postPlace( args.orderCurrency as string, args.units as number, args.price as number, args.type as tradeType // Cast to expected type ); break;
- src/index.ts:210-222 (registration)Tool registration in the MCP server's tools list, including name, description, and input schema.name: 'post_place', description: 'Place a limit order (buy/sell) (Private)', inputSchema: { type: 'object', properties: { orderCurrency: { type: 'string', description: 'Cryptocurrency symbol (e.g. BTC, ETH)' }, units: { type: 'number', description: 'Order quantity' }, price: { type: 'number', description: 'Order price' }, type: { type: 'string', enum: ['bid', 'ask'], description: 'Order type (bid or ask)' } }, required: ['orderCurrency', 'units', 'price', 'type'] } },
- TypeScript interface defining the expected response structure for the postPlace API call.import { IBithumbResponse } from './bithumb-response.interface.js'; export interface IPostPlace extends IBithumbResponse { order_id: string; }