okx-live-trading

okx-live-trading is a skill for Codex from xiazhi88/desic-okx-agent. It costs 44 tokens per session (1,631 once invoked), scanned A, original, MIT.

A tool for running a previously backtested trading strategy on a real OKX account. Backtesting means testing a strategy against historical market data.

In plain words
What is it for?
Creating, starting, inspecting, diagnosing, and stopping profiles that trade a chosen instrument and account on closed one-minute market bars.
Why use it?
It manages live trading profiles and risk limits, but starting one can spend real money and requires explicit approval after reviewing its validation results and demo run.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Creating, starting, inspecting, diagnosing, and stopping profiles that trade a chosen instrument and account on closed one-minute market bars.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiazhi88/desic-okx-agent/okx-live-trading
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-live-trading
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-live-trading

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiazhi88/desic-okx-agent/okx-live-trading"><img src="https://agentmods.dev/badge/skills/xiazhi88/desic-okx-agent/okx-live-trading.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,631 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.00044 $0.01631
Opus 5 $0.00022 $0.00816
Sonnet 5 $0.00009 $0.00326
Haiku 4.5 $0.00004 $0.00163

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

Security

Grade A, and why

okx-live-trading 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 11d 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-live-trading/SKILL.md · 129 lines

How it starts

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

OKX Live Trading

A live profile binds one strategy, one instrument, one account, and a set of risk budgets. Once enabled it acts on every closed one-minute bar without being asked again.

Read references/lifecycle.md before creating or starting anything.

This spends real money. Every constraint below exists because of a specific way money gets lost, not as ceremony.

Ask before committing real money

On the demo environment, work independently: write, backtest, tune, create a profile, start it, read the signals, stop it. That is a complete verification loop and you should use all of it without checking in at each step.

Before enabling any profile whose environment is live, stop and ask the operator. Nothing in the system will stop you, so this is your responsibility rather than a check you will run into.

State these things and wait for an explicit yes:

  • which profile, on which instrument and account
  • the entry budget, side budget, and daily loss limit, in USDT
  • the backtest behind it, quoting validation-segment figures rather than training ones
  • what the demo run showed: how many signals, how many were refused and by which gate
  • that starting it commits real money to a strategy that will act without further approval

"Should I start it?" on its own is not asking. The operator needs the numbers in front of them to answer usefully.

If they say yes, start it and report what happened. If they do not answer, leave it stopped — a profile nobody approved should not be trading.

If live_create_profile and live_start are absent from your tool list, the operator has not enabled agent access. Say so and stop; do not reach for trade_place_order to do the same thing by hand.

Workflow

  1. Establish the strategy first, through okx-strategy-research: write it, validate it, backtest it, and tune it. A profile cannot be enabled until its exact source has completed a backtest on its exact instrument, so this is not optional.
  2. Confirm the market data environment matches the profile you intend to create. Demo and live are separate markets with different prices; desic-okx market env reports which is streaming, and a mismatch is refused at enable time.
  3. Choose budgets deliberately and be able to defend each one. live_create_profile requires a rationale from you: which backtest justified this, and why these numbers. Write it for someone reviewing the profile a month later.
  4. Call live_readiness before live_start. It lists everything outstanding at once, so you fix the set rather than discovering one blocker at a time.
  5. Start on demo. Let it run long enough to produce several signals of more than one kind.
  6. Read live_signals and report what actually happened, including the refusals.
  7. Read live_audit when diagnosing lifecycle or execution state. Unlike mutable profile/signal rows, these transition events remain after a profile is deleted.
  8. Stop with live_stop when the observation is done. Never leave a profile running because it might be useful later. If account-wide state is uncertain, engage live_engage_kill_switch; it persistently stops every profile and blocks all re-enables until an operator clears it.

Read the full file on GitHub · 129 lines

Files

What ships with it

2 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. 11d ago First seen · 129 lines · 44 tokens per session scan A 6e05b60d4353

Subscribe to this mod's changes

okx-live-trading is a skill published in the GitHub repository xiazhi88/desic-okx-agent (0 stars, last pushed 17d ago), licensed MIT. It adds 44 tokens to every session and 1,631 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

OKX AI Trading Co-Pilot

AI-powered cryptocurrency trading assistant with 4-agent analysis, real-time OKX exchange integration, and autonomous trading capabilities.

foxisyw/trade-mcp-server · 31 tokens

polymarket

Query Polymarket: markets, prices, orderbooks, history.

NousResearch/hermes-agent · 18 tokens

quantdata-daily-bias

Reads rolling Brooks price-action events for a stock, ETF, futures contract, FX pair or crypto pair from the Quant Data Brooks Events API — range breakouts with measured failure rates and a calibrated per-event estimate, breakout follow-through, range position, long-range breakouts and climactic spikes — together with…

celineycn/quantdata-plugin · 167 tokens

quantdata-max-pain

Looks up options positioning for US stocks and ETFs — max pain, open-interest call and put walls, put/call ratio, and estimated dealer gamma exposure (GEX) with the zero gamma flip level. Reads Quant Data's free public pages when no API key is set, and prefers the JSON endpoints /v1/maxpain and /v1/gamma when…

celineycn/quantdata-plugin · 140 tokens

quantdata-weis-wave

Reads Weis Wave volume-price structure for a symbol from the Quant Data Weis Wave API — current wave direction and volume, recent completed waves, and detected events (climax-into-buying, no-supply, no-demand, sign-of-thrust) each carrying its pre-registered measured win rate. Use when the user asks about volume…

celineycn/quantdata-plugin · 114 tokens

polymarket

Query Polymarket prediction market data — search markets, get prices, orderbooks, and price history. Read-only via public REST APIs, no API key needed.

NeoLabs-Systems/NeoAgent · 37 tokens