Skip to main content
Glama
kwonsw812

kiwoom-mcp

by kwonsw812

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
NameRequiredDescriptionDefault
account_noNo계좌번호 (미입력시 기본 계좌 사용)

Implementation Reference

  • 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));
        }
      }

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/kwonsw812/kiwoom-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server