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.
npx agentmods add skills/okx/plugin-store/mainstream-spot-ordernpx skills add okx/plugin-store --skill mainstream-spot-ordergit clone --depth 1 https://github.com/okx/plugin-storeWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00106 | $0.08104 |
| Opus 5 | $0.00053 | $0.04052 |
| Sonnet 5 | $0.00021 | $0.01621 |
| Haiku 4.5 | $0.00011 | $0.00810 |
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 2d 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.
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) 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:
- 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. - 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 stringconfirm live trade/确认实盘交易. A conversational "yes / sure / ok / 可以" or simply editingPAPER_TRADE = Falseis NOT sufficient — the typed string MUST come from the live conversation. - 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.
- 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.
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- .claude-plugin/plugin.json 527 B
- .gitignore 242 B
- backtest.py 2.2 KB runs code
- collect.py 16 KB runs code
- config.py 11 KB runs code
- dashboard.html 45 KB
- LICENSE 807 B
- live.py 16 KB runs code
- okx.py 13 KB runs code
- plugin.yaml 550 B
- prepare.py 7.7 KB runs code
- program.md 2.1 KB
- README.md 1.8 KB
- requirements.txt 97 B
- strategy.py 17 KB runs code
- SUMMARY.md 1.6 KB
- system_diagram.html 24 KB
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.
- 2d ago First seen · 732 lines · 106 tokens per session scan A 02b0b8eeef4c
mainstream-spot-order is a skill published in the GitHub repository okx/plugin-store (11 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 8,104 once invoked, about $0.0005 per session on Opus 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.
Other skills, from other repositories
defi-yield
DeFi yield analysis and optimization — lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.
okx-market
OKX cryptocurrency market data interface. Uses the OKX V5 REST API to retrieve spot, derivatives, index, and other crypto market data, including real-time prices, candlesticks, funding rates, open interest, and more. No authentication required, free to use.
tres-data-collection-commit
Trigger on-chain data collection (a "Commit") in Tres Finance for wallets that have already been onboarded. Use this skill whenever the user wants to collect data, pull balances, sync wallets, refresh on-chain data, run a commit, trigger a commit, or "collect" anything in Tres. This is the second step of the Tres…
ansem-crypto
Use when evaluating crypto narratives, attention rotation, memecoin cycles, Solana-style ecosystem momentum, social distribution, and reflexive retail flows in an Ansem-style crypto market framework.
arthur-hayes-liquidity
Use when evaluating crypto markets through an Arthur Hayes-style liquidity lens: dollar liquidity, funding, risk appetite, cycle psychology, and macro-driven crypto positioning.
portfolio
Cross-chain DeFi portfolio discovery, rebalancing suggestions, and NEAR Intent construction. Activates when the user pastes a wallet address or asks about yield/positions/rebalancing. Bootstraps a per-user "portfolio" project, aggregates positions across all the user's addresses inside one project, and offers a…