okx-outcomes

Trade YES/NO event contracts on OKX Outcomes markets via the okx-outcomes CLI.

Updated Aug 21, 2026
One-click install
npx skills add https://github.com/nickthelegend/xorr-monorepo --skill okx-outcomes-nickthelegend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: okx-outcomes
Source: https://github.com/nickthelegend/xorr-monorepo/tree/main/.agents/skills/okx-outcomes
Command: npx skills add https://github.com/nickthelegend/xorr-monorepo --skill okx-outcomes-nickthelegend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @okx_ai/okx-trade-cli, and includes references (resource) components.

What problem does it solve? Trading binary-outcome prediction markets requires juggling event discovery, order-book data, OAuth sign-in, wallet binding, and EIP-712 signed on-chain writes. This Skill gives an agent a complete, safe command workflow for the OKX Outcomes CLI so users can browse events, check prices, manage positions, and place or redeem orders without memorizing command syntax or risking unsafe key handling. ## Core Features & Use Cases - Market discovery and data: List and search events, drill into event markets, and fetch live prices, order books, tickers, and OHLCV candles keyed by asset ID. - Account and portfolio management: Check balances, open orders, open and closed positions with realized PnL, and trade history via OAuth-authenticated reads. - Safe on-chain writes: Place limit or market orders, cancel orders, and run CTF split/merge/redeem operations, all gated behind a mandatory dry-run preview and explicit user confirmation. - Agent-driven onboarding: Complete region selection, device-code OAuth sign-in, and EOA wallet binding entirely from the agent, with the user acting only in a browser or the OKX app. - Use Case: A user asks to buy 100 YES shares on a BTC price event. The agent looks up the event's YES asset ID, checks the live price and balance, renders a dry-run summary, and only executes after the user replies "confirm". ## Quick Start Ask the agent to list active prediction events and show the live YES price and order book for one that interests you.

Frequently Asked Questions about okx-outcomes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I place an order on OKX Outcomes prediction markets?

Use okx outcomes clob create-order with the asset ID, side, price, and size. The skill requires a dry-run preview showing market, price, notional, wallet, and balance first, and only executes after you reply with the exact word confirm.

How do I set up OKX Outcomes sign-in and wallet binding?

Run three agent-driven steps: setup region, auth login --manual for device-code OAuth sign-in, then setup bind to generate a signing wallet. You authorize in a browser and approve the wallet binding via a short link in the OKX app.

What is the difference between asset ID and market ID in OKX Outcomes?

A market has two outcomes, YES and NO, each with its own numeric asset ID. CLOB price, book, and order commands use asset IDs, while CTF split, merge, and redeem commands use the market ID. Use event-markets to look up both.

Can I use OKX Outcomes for crypto spot or futures trading?

No. This skill only covers YES/NO event contracts on OKX Outcomes markets. For spot, swap, futures, or CEX event contracts, use the okx-cex-trade skill; for crypto market data use okx-cex-market.

Why does my OKX Outcomes order fail with NotAuthenticated?

NotAuthenticated means no signing wallet is configured. Run okx outcomes setup bind to generate a wallet and bind it via the short link in the OKX app. Never paste a private key in chat; the key stays in the local keyring.

How do I redeem winnings after a prediction market resolves?

Find positions with status Won via account positions, then run okx outcomes ctf redeem with the market ID after a dry-run confirmation. Redeem burns your entire winning-token balance and pays out in xp points.