opentradex-buy

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

A paper-trading command that opens a long position, meaning a simulated bet that an asset or prediction will rise. It supports Kalshi and Polymarket prediction markets, plus Alpaca stocks and Coinbase crypto.

In plain words
What is it for?
Use it to paper-buy a prediction-market contract, stock, or cryptocurrency by providing the trading venue, symbol, quantity, and optionally a price.
Why use it?
It gives you a structured way to record a simulated buy while checking required details and trading risk first. It makes clear that the fill is not real.

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

Good fit Use it to paper-buy a prediction-market contract, stock, or cryptocurrency by providing the trading venue, symbol, quantity, and optionally a price.

Compare 6 skills from other repositories ↓
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-buy

README.md
[![agentmods](https://agentmods.dev/badge/skills/deonmenezes/opentradex/buy/github.svg)](https://agentmods.dev/skills/deonmenezes/opentradex/buy)
Your own site
<a href="https://agentmods.dev/skills/deonmenezes/opentradex/buy"><img src="https://agentmods.dev/badge/skills/deonmenezes/opentradex/buy/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 opentradex-buy

Your own site · 80×15
<a href="https://agentmods.dev/skills/deonmenezes/opentradex/buy"><img src="https://agentmods.dev/badge/skills/deonmenezes/opentradex/buy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 427 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.00075 $0.00427
Opus 5 $0.00037 $0.00214
Sonnet 5 $0.00015 $0.00085
Haiku 4.5 $0.00007 $0.00043

Measured 9d ago against content hash 5b80650d6c10, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

opentradex-buy 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 9d 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/buy/SKILL.md · 29 lines

What it actually says

OpenTradex — Paper Buy

Open a long paper position.

User arguments: $ARGUMENTS — expected form <rail> <symbol> <qty> [price].

Flow

  1. Validate the user gave you all four pieces (rail, symbol, qty, optional price). If anything is missing, ask for exactly what's missing in one short sentence — don't re-ask fields the user already gave.
  2. Pre-trade risk check: quote the open position count and current exposure: !node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" risk If openPositions ≥ 5 or dailyTotal ≤ -50, warn the user and confirm before proceeding.
  3. Place the paper buy: !node "${CLAUDE_PLUGIN_ROOT}/bin/tradex.js" buy $ARGUMENTS
  4. Echo the fill price, position id, and remind the user: "To close: /opentradex-trade:sell <position-id>."

Rules

  • This is paper-only. Never claim real fills.
  • Price units: prediction markets (Kalshi/Polymarket) use 0–1 (probability); stocks (Alpaca) and crypto (Coinbase) use raw currency.
  • If the rail isn't enabled, tell the user to run /opentradex-trade:onboard first.
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. 9d ago First seen · 29 lines · 75 tokens per session scan A 5b80650d6c10

Subscribe to this mod's changes

opentradex-buy is a skill published in the GitHub repository deonmenezes/opentradex (56 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 427 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-30.

Related

Other skills, from other repositories