sim-trade

sim-trade is a skill for Codex from Fize/mmtickerlab. It costs 119 tokens per session (742 once invoked), scanned A, original, MIT.

A paper-trading system for simulated buying and selling of A-share stocks in Shanghai, Shenzhen, and Beijing. Paper trading uses fictional money, while A-shares are mainland Chinese stocks traded in renminbi.

In plain words
What is it for?
Use it to create or inspect a simulated account, place or cancel limit orders, process trades, and review the SQLite transaction ledger.
Why use it?
It lets an agent test limit orders and account activity while checking market hours, settlement rules, and recorded transactions.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: built for openclaw.

Good fit Use it to create or inspect a simulated account, place or cancel limit orders, process trades, and review the SQLite transaction ledger.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fize/mmtickerlab/sim-trade
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 Fize/mmtickerlab --skill sim-trade
Clone the repo
git clone --depth 1 https://github.com/Fize/mmtickerlab

Made for: Codex.

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 sim-trade

README.md
[![agentmods](https://agentmods.dev/badge/skills/fize/mmtickerlab/sim-trade/github.svg)](https://agentmods.dev/skills/fize/mmtickerlab/sim-trade)
Your own site
<a href="https://agentmods.dev/skills/fize/mmtickerlab/sim-trade"><img src="https://agentmods.dev/badge/skills/fize/mmtickerlab/sim-trade/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sim-trade

Your own site · 80×15
<a href="https://agentmods.dev/skills/fize/mmtickerlab/sim-trade"><img src="https://agentmods.dev/badge/skills/fize/mmtickerlab/sim-trade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 742 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.00119 $0.00742
Opus 5.5 $0.00048 $0.00297
Sonnet 5.5 $0.00024 $0.00148
Haiku 4.5 $0.00012 $0.00074

Measured 1mo ago against content hash 2ac2f459e040, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sim-trade 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 1mo ago.

The scan reads SKILL.md. This mod also ships 12 executable files (scripts/akshare_patch.py, scripts/simtrade_core/__init__.py, scripts/simtrade_core/database.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

sim-trade/SKILL.md · 51 lines

What it actually says

Sim Trade — A股模拟交易系统

在项目根目录下调用确定性 CLI 命令。严禁编造行情、绕过数据检查或用成本价替代当前市值。

适用范围与市场边界

  • A 股专属引擎:本系统专为沪深京 A 股市场设计,严格执行 A 股交易规则(T+1 交割、100 股整倍数买入、5%/10%/20% 涨跌停限制、印花税与过户费)。
  • 港美股代码拦截:传入港股(5 位代码)或美股(英文代码)将直接被系统校验拦截并触发 ValidationError 报错,提示不属于 A 股撮合范围。
  • 与风控门禁(risk-guard)协同:在提交买入委托(order buy)前,应当参考 risk-guard 输出的当前大势仓位上限与动态止损点位。

环境准备

uv venv sim-trade/.venv
uv pip install --python sim-trade/.venv -r sim-trade/requirements.txt

命令前缀:

sim-trade/.venv/bin/python sim-trade/scripts/simtrade.py

需要机器可读输出时在前加入 --json 参数。

交易工作流

  1. 环境检查:会话首次操作前运行 doctor --code CODE。缺失必需数据时停止操作。
  2. 创建账户:account create --name NAME --cash AMOUNT。不覆盖已有账户。
  3. 行情查看:交易决策前运行 quote CODE 确认五档盘口。
  4. 提交委托:仅使用明确限价单 order buy|sell CODE SHARES --price PRICE。
  5. 处理成交:交易时间内运行 order process [--order-id ID] 依据最新盘口撮合。
  6. 撤单与查询:order cancel ID 释放资金/持仓;使用 portfolio、history、audit 审查。

硬性门禁

  • 仅支持 CLI 识别的 6 位沪深京 A 股股票代码。
  • 仅支持限价单(Limit Order),严禁模拟市价单或捏造成交。
  • 非交易日及非连续竞价时段(09:30–11:30, 13:00–15:00)拒绝下单。
  • 买入股票执行下一个交易日可卖出(T+1),不使用日历日滚动。
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. 1mo ago Changed · -1 lines 2ac2f459e040
  2. 1mo ago Changed · +5 lines · +53 tokens per session 3fabb2338824
  3. 1mo ago Changed · -5 lines · -56 tokens per session a47249d1ff66
  4. 1mo ago First seen · 52 lines · 122 tokens per session scan A 34afb6c6a356

Subscribe to this mod's changes

sim-trade is a skill published in the GitHub repository Fize/mmtickerlab (5 stars, last pushed 25d ago), licensed MIT. It adds 119 tokens to every session and 742 once invoked, about $0.0005 per session on Opus 5.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

adr-hshare

ADR/H-share/A-share cross-listing premium analysis — track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.

HKUDS/Vibe-Trading · 50 tokens

bottleneck-hunter

Supply-chain bottleneck arbitrage. Given a super-trend (AI infra, energy transition, defense, semiconductor reshoring, space economy), decompose its physical supply chain down to Layer 2/3 choke points (optics, lasers, InP/SOI substrates, IC substrates, probe cards, specialty fiberglass...) and surface under-the-radar…

HKUDS/Vibe-Trading · 145 tokens

hedging-strategy

Hedging strategy design (beta hedge / option protection / tail risk / cross-asset hedging), including hedge-ratio calculation and cost evaluation.

HKUDS/Vibe-Trading · 35 tokens

report-generate

Professional financial research report generation — standard structure (summary / views / main body / risks / recommendation), Markdown formatting standards, rating system, and terminology guide.

HKUDS/Vibe-Trading · 35 tokens

eastmoney

A collection of free Eastmoney market-data interfaces for Chinese and US stocks. It provides information such as money flows, company reports, financial news, shareholder activity, and stock searches without requiring a login token.

HKUDS/Vibe-Trading · 134 tokens

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens