mainstream-spot-order

mainstream-spot-order is a skill for Claude Code from okx/plugin-store. It costs 106 tokens per session (8,104 once invoked), scanned A, original, MIT.

A cryptocurrency spot-trading system for six tokens across four blockchain networks, using 15-minute market data and six trading signals.

In plain words
What is it for?
Use it to research and optimise strategies, backtest individual token pairs, collect market data, and run paper or explicitly confirmed live trades.
Why use it?
It provides one workflow for collecting data, testing strategies, and running trades while defaulting to paper trading before real transactions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the mainstream-spot-order plugin — 1 skill shipped together

Good fit Use it to research and optimise strategies, backtest individual token pairs, collect market data, and run paper or explicitly confirmed live trades.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okx/plugin-store/mainstream-spot-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 okx/plugin-store --skill mainstream-spot-order
Clone the repo
git clone --depth 1 https://github.com/okx/plugin-store

Made for: Claude Code.

Or install mainstream-spot-order, the plugin that ships this one along with the rest of its 1 skill.

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 mainstream-spot-order

README.md
[![agentmods](https://agentmods.dev/badge/skills/okx/plugin-store/mainstream-spot-order/github.svg)](https://agentmods.dev/skills/okx/plugin-store/mainstream-spot-order)
Your own site
<a href="https://agentmods.dev/skills/okx/plugin-store/mainstream-spot-order"><img src="https://agentmods.dev/badge/skills/okx/plugin-store/mainstream-spot-order/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 mainstream-spot-order

Your own site · 80×15
<a href="https://agentmods.dev/skills/okx/plugin-store/mainstream-spot-order"><img src="https://agentmods.dev/badge/skills/okx/plugin-store/mainstream-spot-order.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,104 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 32
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 474
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
  • medium Rogue Agent · line 501
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00106 $0.08104
Opus 5.5 $0.00042 $0.03242
Sonnet 5.5 $0.00021 $0.01621
Haiku 4.5 $0.00011 $0.00810

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

Security

Grade A, and why

mainstream-spot-order scanned grade A with 1 finding 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 7 executable files (backtest.py, collect.py, config.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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **No pip packages** — stdlib only (math, csv, json, os, time, subprocess, urllib)
skills/mainstream-spot-order/SKILL.md · 732 lines

How it starts

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

Mainstream Spot Order — Multi-Chain DEX Trading System

A 15-minute timeframe spot trading system across 6 mainstream tokens on 4 chains, with AI-driven auto-research strategy optimization.


Disclaimer

This system trades real cryptocurrency. Spot trading carries substantial risk of loss. Past backtest performance does not guarantee future results. Market conditions change. You are solely responsible for any financial losses incurred. Always start with paper trading (PAPER_TRADE = True) and only switch to live after extensive validation.


Live Trading Confirmation Gate

These gates are mandatory for the AI agent driving this skill. Before any real on-chain swap (onchainos swap swap, onchainos wallet contract-call, or any other write surface that broadcasts an Agentic Wallet TEE-signed transaction), ALL of the following MUST hold:

  1. Paper mode is the default. PAPER_TRADE = True (and any other paper / preview / dry-run flag) MUST remain the default. Real swaps MUST NOT be broadcast unless the user has explicitly switched to live mode via rule 2.
  2. Typed confirmation required. To switch a session from PAPER to LIVE the agent MUST first display the active wallet address, per-chain balance, the per-trade and daily notional caps from config.py, and the irreversibility / MEV / slippage exposure of on-chain swaps. The user MUST then reply with the exact typed string confirm live trade / 确认实盘交易. A conversational "yes / sure / ok / 可以" or simply editing PAPER_TRADE = False is NOT sufficient — the typed string MUST come from the live conversation.
  3. Preview before every write. Each swap MUST first run a quote / dry-run and show the user the resolved fields (chain, pair, side, size in base + quote, expected min-out, slippage, gas). The user confirms per trade — or, within an active session-level rule-2 token, only if the trade is within the caps surfaced in rule 2.
  4. Refuse on gate failure. If any of rules 1–3 cannot be satisfied, refuse and tell the user which gate failed. Do NOT "broadcast with a warning" or rely on the user having typed the confirmation in an earlier session.

Read the full file on GitHub · 732 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. 1mo ago First seen · 732 lines · 106 tokens per session scan A 02b0b8eeef4c

Subscribe to this mod's changes

mainstream-spot-order is a skill published in the GitHub repository okx/plugin-store (12 stars, last pushed 18d ago), licensed MIT. It adds 106 tokens to every session and 8,104 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.