okx-strategy-research

okx-strategy-research is a skill for Codex from xiazhi88/desic-okx-agent. It costs 58 tokens per session (2,186 once invoked), scanned A, original, MIT.

A toolkit for writing and testing Python trading strategies against local one-minute OKX market history.

In plain words
What is it for?
Use it to write strategies, validate their source, check or repair data coverage, run backtests, inspect standalone HTML reports, compare runs, and diagnose data gaps.
Why use it?
It checks strategy code, verifies that market data covers the requested period, prevents tests from silently skipping missing minutes, and produces reports for comparing results.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to write strategies, validate their source, check or repair data coverage, run backtests, inspect standalone HTML reports, compare runs, and diagnose data gaps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiazhi88/desic-okx-agent/okx-strategy-research
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 xiazhi88/desic-okx-agent --skill okx-strategy-research
Clone the repo
git clone --depth 1 https://github.com/xiazhi88/desic-okx-agent

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 okx-strategy-research

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiazhi88/desic-okx-agent/okx-strategy-research/github.svg)](https://agentmods.dev/skills/xiazhi88/desic-okx-agent/okx-strategy-research)
Your own site
<a href="https://agentmods.dev/skills/xiazhi88/desic-okx-agent/okx-strategy-research"><img src="https://agentmods.dev/badge/skills/xiazhi88/desic-okx-agent/okx-strategy-research/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 okx-strategy-research

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiazhi88/desic-okx-agent/okx-strategy-research"><img src="https://agentmods.dev/badge/skills/xiazhi88/desic-okx-agent/okx-strategy-research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,186 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.00058 $0.02186
Opus 5.5 $0.00023 $0.00874
Sonnet 5.5 $0.00012 $0.00437
Haiku 4.5 $0.00006 $0.00219

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

Security

Grade A, and why

okx-strategy-research 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 2mo 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.

skills/okx-strategy-research/SKILL.md · 183 lines

How it starts

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

OKX Strategy Research

Strategies are Python modules that define on_bar(ctx). The host owns the clock, the market window, matching, sizing, and risk. A strategy returns one decision per bar and never receives an exchange client, credentials, or an order API.

Read references/python-api.md before writing code. Use the documented field names directly; do not probe for spellings.

Workflow

  1. Confirm the environment once with strategy_environment. If it is not ready, tell the user to run desic-okx strategy env --setup rather than attempting installation yourself.
  2. Write the strategy. Return exactly one decision per bar. Do not pass a contract count — the host derives size from its own budget.
  3. Call strategy_validate_source before every backtest. It returns violations with line numbers in milliseconds, so it is always cheaper than discovering a forbidden import after queuing.
  4. Check coverage with data_coverage for the instrument and range you intend to test. Repair gaps with data_download first: a backtest over a window with a hole fails closed rather than skipping the minute.
  5. Queue the run with strategy_run_backtest. Give meaningful experiments an experimentName and notes; these are editable research metadata and never change source identity, assumptions, or results. It returns a runId immediately. Poll strategy_get_run until status is completed, failed, or cancelled. Never assume a run finished because the call returned.
  6. Read details only as needed, through strategy_get_run_equity, strategy_get_run_trades, and strategy_get_run_actions. Request pages; a full equity curve is tens of thousands of points.
  7. To tune parameters, use strategy_run_optimize rather than running backtests in a loop and picking the best. It splits the window and ranks on a segment the candidates never saw; choosing by hand across whole-window results selects for overfitting with no way to detect it. Read references/tools-and-data.md before reporting a search.
  8. When testing several strategies as one allocation, use strategy_run_portfolio_backtest. It reserves fixed capital sleeves on one shared initial account and recomputes the aggregate equity and drawdown. It does not simulate margin borrowing or netting between strategies; do not describe it as dynamic cross-margin portfolio execution.
  9. To weigh two runs against each other, use strategy_compare_runs rather than quoting two reports in sequence. Read its warnings first and repeat them: two runs over different data, instruments, windows, or costs are not two answers to one question, and that is invisible in the metrics alone.
  10. When the user asks for a detailed report, visual report, HTML report, charts, or to open/view a report (including Chinese requests such as "详细报告", "HTML 报告", "打开报告", or "查看图表"), generate it immediately with strategy_open_report or strategy_open_comparison. Do not replace that action with paged data reads or merely tell the user which CLI command they could run.

Read the full file on GitHub · 183 lines

Files

What ships with it

5 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.

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. 2mo ago First seen · 183 lines · 58 tokens per session scan A a3ed93ce6f11

Subscribe to this mod's changes

okx-strategy-research is a skill published in the GitHub repository xiazhi88/desic-okx-agent (1 stars, last pushed 2mo ago), licensed MIT. It adds 58 tokens to every session and 2,186 once invoked, about $0.0002 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

okx-strategy-research compared with skills from other repositories

okx-strategy-research next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
okx-strategy-researchxiazhi88/desic-okx-agentSkill12mo agoMITA58Codex
OKX AI Trading Co-Pilotfoxisyw/trade-mcp-serverSkill08mo agononeA31Claude Code, Codex
polymarketNousResearch/hermes-agentSkill261kyesterdayMITA18Claude Code, Codex
Financial Data Fetchergracefullight/stock-checkerSkill49yesterdaynoneA23Claude Code, Codex
quantdata-daily-biascelineycn/quantdata-pluginSkill12mo agoMITA167Claude Code
quantdata-weis-wavecelineycn/quantdata-pluginSkill12mo agoMITA114Claude Code
quantdata-max-paincelineycn/quantdata-pluginSkill12mo agoMITA140Claude Code