Skip to main content
Glama
kwonsw812

kiwoom-mcp

by kwonsw812

get_account_balance

Retrieve account balance details including held stocks, current prices, purchase prices, and total investment amounts from Kiwoom Securities accounts.

Instructions

보유 주식 목록, 현재가, 매입가, 매입금액 등 계좌 잔고를 조회합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_noNo계좌번호 (미입력시 기본 계좌 사용)

Implementation Reference

  • The underlying API request method for fetching account balance.
    async getAccountBalance(accountNo: string) {
      return this.request("/api/dostk/acnt", "ka10085", {
        acc_no: accountNo,
        stex_tp: "0",
      });
    }
  • src/index.ts:512-526 (registration)
    The MCP tool registration for 'get_account_balance'.
    server.tool(
      "get_account_balance",
      "보유 주식 목록, 현재가, 매입가, 매입금액 등 계좌 잔고를 조회합니다",
      { account_no: accountNoSchema },
      { readOnlyHint: true },
      async ({ account_no }) => {
        try {
          const acct = resolveAccountNo(account_no);
          const data = await client.getAccountBalance(acct);
          return textContent(formatBalance(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