place-order

place-order is a skill for Claude Code from gejyn14/kiwoom-plugin. It costs 71 tokens per session (1,026 once invoked), scanned A, original, Apache-2.0.

A guarded stock-order workflow for buying, selling, changing, or cancelling shares through a Kiwoom account.

In plain words
What is it for?
Use it when placing, changing, or cancelling Korean stock orders, including checking the market, balance, price, total amount, and whether the account is live or for practice.
Why use it?
It helps prevent sending a wrong order or accidentally trading with real money. It checks the account and order details, shows a preview, and requires explicit approval before sending.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the kiwoom-trader plugin — 7 skills, 1 MCP server shipped together

Good fit Use it when placing, changing, or cancelling Korean stock orders, including checking the market, balance, price, total amount, and whether the account is live or for practice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gejyn14/kiwoom-plugin/place-order
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gejyn14/kiwoom-plugin --skill place-order
Clone the repo
git clone --depth 1 https://github.com/gejyn14/kiwoom-plugin

Made for: Claude Code.

Or install kiwoom-trader, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for place-order

README.md
[![agentmods](https://agentmods.dev/badge/skills/gejyn14/kiwoom-plugin/place-order.svg)](https://agentmods.dev/skills/gejyn14/kiwoom-plugin/place-order)
Your own site
<a href="https://agentmods.dev/skills/gejyn14/kiwoom-plugin/place-order"><img src="https://agentmods.dev/badge/skills/gejyn14/kiwoom-plugin/place-order.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,026 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.01026
Opus 5 $0.00036 $0.00513
Sonnet 5 $0.00014 $0.00205
Haiku 4.5 $0.00007 $0.00103

Measured 7d ago against content hash 0e0ba378bae8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

place-order scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/kiwoom-trader/skills/place-order/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

주문

실제 계좌에서 돈이 움직인다. 아래 순서를 건너뛰지 않는다.

0. 어느 계좌인지 먼저 확인한다

kiwoom_run(["auth","status"])

domain"prod"실거래다. 사용자가 모의투자라고 생각하고 있는데 실거래로 붙어 있는 상황이 가장 위험하므로, 실거래일 때는 주문 전에 반드시 그 사실을 말하고 확인을 받는다.

1. 사전점검 (아무것도 전송하지 않는다)

kiwoom_order_validate(side="buy", symbol="005930", qty=10, price=70000)

symbol_ok / market_open / sufficient_balance / price_ok / price_known을 확인한다. 실패하면 VALIDATION_FAILED로 끝나며, 여기서 멈춘다. 실패 이유를 사용자에게 설명하고 어떻게 고칠지 제안한다.

2. 미리보기 (아무것도 전송하지 않는다)

kiwoom_order(action="buy", symbol="005930", qty=10, price=70000, dry_run=True)

dry_run은 기본값이 True다. 전송될 body와 예상 금액이 돌아온다. 이것을 사용자에게 보여주고 확인을 받는다 — 종목, 수량, 가격, 총액, 그리고 실거래인지 모의인지.

3. 전송

사용자가 명시적으로 승인한 뒤에만:

kiwoom_order(
  action="buy", symbol="005930", qty=10, price=70000,
  dry_run=False, confirm=True,
  client_order_id="<이번 주문을 위한 고유 문자열>"
)

dry_run=Falseconfirm=True둘 다 명시해야 전송된다.

client_order_id는 항상 넣는다

멱등키다. 같은 키로 같은 내용을 다시 호출하면 재전송하지 않고 이전 응답을 돌려준다. 응답을 못 받았을 때 안전하게 재시도할 수 있는 유일한 방법이다.

  • 주문 하나마다 새로운 값을 만든다 (예: buy-005930-20260721-001)
  • 재시도할 때는 같은 값을 쓴다 — 새 값을 만들면 중복 주문이 된다
  • 내용이 다른데 같은 키를 쓰면 IDEMPOTENCY_CONFLICT로 거부된다 (안전장치)

정정·취소

kiwoom_order(action="cancel", symbol="005930", order_no="<원주문번호>", qty=10, ...)
kiwoom_order(action="modify", symbol="005930", order_no="<원주문번호>", qty=10, price=71000, ...)

원주문번호는 kiwoom_run(["account","orders","pending"])의 미체결 목록에서 찾는다. 취소·정정도 1~3단계를 똑같이 거친다.

응답을 못 받았을 때

ORDER_STATUS_UNKNOWN이 오면 주문이 나갔는지 알 수 없다는 뜻이다. 같은 내용으로 다시 보내지 않는다. kiwoom_run(["account","orders","pending"])로 체결·미체결 상태를 먼저 확인하고, 그 결과를 사용자에게 보고한다.

TOKEN_EXPIRED로 실패하면 서버가 토큰을 갱신했을 수 있다 — 같은 client_order_id 다시 호출한다.

지켜야 할 선

  • 먼저 주문을 제안하지 않는다. 사용자가 요청한 주문만 처리한다.
  • 수량이나 가격을 추측하지 않는다. "적당히 사줘" 같은 요청에는 구체적인 수량과 가격을 되묻는다.
  • 한 번에 하나씩. 여러 종목을 한꺼번에 주문해 달라고 해도 각각 1~3단계를 거친다.
  • 성공을 확인 없이 보고하지 않는다. exit_codeerror를 읽고 실제 결과를 말한다. 실패했으면 실패했다고 한다.
  • 투자 판단은 사용자의 것이다. 무엇을 살지 권하지 않는다.

Read the full file on GitHub · 92 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 92 lines · 71 tokens per session scan A 0e0ba378bae8

Subscribe to this mod's changes

place-order is a skill published in the GitHub repository gejyn14/kiwoom-plugin (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 71 tokens to every session and 1,026 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories