opentradex-risk

opentradex-risk is a skill for Claude Code from deonmenezes/opentradex. It costs 69 tokens per session (259 once invoked), scanned A, original, MIT.

A daily risk report for OpenTradex, a trading tool that tracks positions and profit or loss. It reads the trading ledger and summarizes open positions, exposure, daily results, and any panic cooldown.

In plain words
What is it for?
Use it before a new trade or when checking risk, daily results, the trading blotter, or current realized and unrealized profit and loss.
Why use it?
It puts the day's trading status in one short report and flags when safeguards have paused trading or losses are near a set limit.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the opentradex-trade plugin — 9 skills shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add deonmenezes/opentradex
Claude Code
/plugin install opentradex-trade

Made for: Claude Code.

Or install opentradex-trade, the plugin that ships this one along with the rest of its 9 skills.

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 opentradex-risk

README.md
[![agentmods](https://agentmods.dev/badge/skills/deonmenezes/opentradex/risk.svg)](https://agentmods.dev/skills/deonmenezes/opentradex/risk)
Your own site
<a href="https://agentmods.dev/skills/deonmenezes/opentradex/risk"><img src="https://agentmods.dev/badge/skills/deonmenezes/opentradex/risk.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 259 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00069 $0.00259
Opus 5 $0.00034 $0.00130
Sonnet 5 $0.00014 $0.00052
Haiku 4.5 $0.00007 $0.00026

Measured 6d ago against content hash 8e85b68b627c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

opentradex-risk 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 6d 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.

opentradex-trade/skills/risk/SKILL.md · 27 lines

What it actually says

OpenTradex — Risk Snapshot

Quick daily risk read.

Flow

  1. Run the risk snapshot: !node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" risk
  2. If panicCooldown > Date.now(), tell the user trading is paused until cooldown expires and show the expiry.
  3. If dailyTotal <= -100, warn the user they're near a self-imposed daily loss limit; suggest they pause or reduce size.
  4. Format the output as:
    Open: N positions · exposure $X
    Today: realized $X · unrealized $X · total $X
    

Rules

  • Don't give financial advice. Report numbers and flag risk thresholds.
  • Never invent numbers — only echo what the ledger returns.
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. 6d ago First seen · 27 lines · 69 tokens per session scan A 8e85b68b627c

Subscribe to this mod's changes

opentradex-risk is a skill published in the GitHub repository deonmenezes/opentradex (56 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 259 once invoked, about $0.0003 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-30.