get_unfilled_orders
Retrieve pending stock orders that have not yet been executed from your Kiwoom Securities account to monitor and manage open trades.
Instructions
미체결 주문 목록을 조회합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_no | No | 계좌번호 (미입력시 기본 계좌 사용) |
Implementation Reference
- src/index.ts:213-219 (handler)The implementation of the getUnfilledOrders method which performs the actual API request.
async getUnfilledOrders(accountNo: string) { return this.request("/api/dostk/acnt", "ka10075", { acc_no: accountNo, all_stk_tp: "0", trde_tp: "0", stex_tp: "0", }); - src/index.ts:623-636 (registration)Registration of the get_unfilled_orders tool which calls the handler.
server.tool( "get_unfilled_orders", "미체결 주문 목록을 조회합니다", { account_no: accountNoSchema }, { readOnlyHint: true }, async ({ account_no }) => { try { const acct = resolveAccountNo(account_no); const data = await client.getUnfilledOrders(acct); return textContent(formatUnfilledOrders(data)); } catch (error) { return errorContent(formatError(error)); } }