# apex crypto intelligence
## Metadata

- Canonical URL: https://6ducklearn.com/skills/apex-crypto-intelligence/
- Markdown URL: https://6ducklearn.com/skills/apex-crypto-intelligence/index.md
- Product: skills
- Category: finance
- Tags: okx, trading, community, okx-marketplace, finance, trend
- Updated: 2026-07-14T03:00:00.357428+00:00
## Summary
AI-driven multi-exchange cryptocurrency market analysis, arbitrage detection, and hedge fund-level trading reports using real-time data from major exchanges.
## Content
> **6DuckLearn provenance:** Community skill by chenji336, mirrored from the OKX Skills Marketplace (https://www.okx.com/en-sg/agent-tradekit/skills/apex-crypto-intelligence). It is not curated, verified, or endorsed by 6DuckLearn or represented as an official OKX publication.
>
> **Financial safety boundary:** Never request secrets in chat. Before any external API call or action that places, cancels, or amends an order; changes leverage; transfers funds; creates or stops a bot; subscribes to or redeems an earn product; or signs/broadcasts a transaction, show the exact live/demo profile, instrument, side, size, price constraints, fees, and worst-case loss, then obtain explicit user approval. Default to read-only or demo mode when uncertain. Treat all analysis as research, not investment advice.

# APEX Crypto Intelligence — Multi-Exchange Trading Analysis

Multi-exchange cryptocurrency analysis that fetches live market data from OKX, CoinGecko, Binance, Bybit, KuCoin, MEXC, and Gate.io, performs cross-exchange arbitrage detection, and delivers AI-powered institutional trading analysis through a Hyper-Council of 5 specialized agents.

> **Note:** The Hyper-Council analysis is powered by `api.neurodoc.app` (GPT-4o), a separate AI service — not Claude. Only aggregated market prices and your query text are sent; exchange API keys never leave your machine.

---

## Prerequisites

### OKX Trade Kit

```bash
npm install -g @okx_ai/okx-trade-mcp @okx_ai/okx-trade-cli
okx config init
okx-trade-mcp setup --client claude-code
```

### Exchange API Keys (all optional)

The skill works without any keys using OKX Trade Kit and CoinGecko free tier. Keys enable authenticated endpoints (higher rate limits) for other exchanges.

| Variable | Exchange |
|----------|----------|
| `BINANCE_API_KEY` / `BINANCE_API_SECRET` | Binance |
| `BYBIT_API_KEY` / `BYBIT_API_SECRET` | Bybit |
| `KUCOIN_API_KEY` / `KUCOIN_API_SECRET` | KuCoin |
| `MEXC_API_KEY` / `MEXC_API_SECRET` | MEXC |
| `GATEIO_API_KEY` / `GATEIO_API_SECRET` | Gate.io |

Configure with **read-only permissions** only. Keys are used locally to fetch data and are never sent to `api.neurodoc.app`.

---

## Data Source Priority

For OKX data, fetch in this order — stop at the first that works:

1. **CLI** (primary): `okx market ticker BTC-USDT`
2. **MCP** (fallback): `market_get_ticker(instId="BTC-USDT")`
3. **REST API** (last resort): direct exchange API calls via `scripts/client.py`

---

## Workflow

### Step 1: Fetch OKX Data

**CLI (try first):**
```bash
okx market ticker {TOKEN}-USDT
okx market candles {TOKEN}-USDT --bar 1D --limit 100
okx market indicator {TOKEN}-USDT --ind RSI
okx market indicator {TOKEN}-USDT --ind MACD
okx market funding-rate {TOKEN}-USDT-SWAP
okx market open-interest --instType SWAP --instId {TOKEN}-USDT-SWAP
okx market orderbook {TOKEN}-USDT
```

**MCP fallback (if CLI unavailable):**
- `market_get_ticker(instId="{TOKEN}-USDT")` — price, bid/ask, 24h stats
- `market_get_candles(instId="{TOKEN}-USDT", bar="1Dutc", limit=100)` — OHLCV
- `market_get_indicator(instId="{TOKEN}-USDT", indicator="rsi", bar="1Dutc")` — RSI
- `market_get_indicator(instId="{TOKEN}-USDT", indicator="macd", bar="1Dutc")` — MACD
- `market_get_funding_rate(instId="{TOKEN}-USDT-SWAP")` — funding rate
- `market_get_open_interest(instId="{TOKEN}-USDT-SWAP", instType="SWAP")` — open interest
- `market_get_orderbook(instId="{TOKEN}-USDT")` — order book depth

### Step 2: Fetch Cross-Exchange Data

Run `scripts/client.py` for multi-exchange price comparison and arbitrage detection. The script fetches from CoinGecko, Binance, Bybit, KuCoin, MEXC, and Gate.io locally, then sends only aggregated prices (no keys) to `api.neurodoc.app`.

```bash
python ${CLAUDE_SKILL_DIR}/scripts/client.py
```

> **Symbol coverage note:** The client currently has hardcoded symbol mappings for BTC, ETH, and SOL. For other coins, cross-exchange comparison falls back to CoinGecko data only.

**To verify the exact payload before sending:**
```bash
python ${CLAUDE_SKILL_DIR}/scripts/client.py  # runs in verification mode by default
```

### Step 3: Send to Hyper-Council API

Choose the appropriate analysis mode:

| Mode | API payload | Use when |
|------|-------------|----------|
| Scanner | `mode="scanner"` | Quick cross-exchange scan |
| Analysis | `mode="analysis"` | Full APEX council report |
| Blueprint | `mode="blueprint"` | Hedge fund-grade trading plan |

API endpoint: `POST https://api.neurodoc.app/aetherlang/execute`

**Example payloads:**

Cross-exchange scan:
```json
{
  "code": "flow CryptoScan {\n  using target \"neuroaether\" version \">=0.3\";\n  input text query;\n  node Scanner: crypto exchanges=\"all\", language=\"en\";\n  output text result from Scanner;\n}",
  "query": "BTC ETH SOL"
}
```

APEX council analysis:
```json
{
  "code": "flow ApexAnalysis {\n  using target \"neuroaether\" version \">=0.3\";\n  input text query;\n  node Apex: crypto mode=\"analysis\", language=\"en\";\n  output text result from Apex;\n}",
  "query": "Full APEX analysis for BTC"
}
```

Trading blueprint:
```json
{
  "code": "flow Blueprint {\n  using target \"neuroaether\" version \">=0.3\";\n  input text query;\n  node Report: crypto mode=\"blueprint\", language=\"en\";\n  output text result from Report;\n}",
  "query": "Generate trading blueprint for BTC"
}
```

Rate limit: 100 req/hour (free tier). If exceeded, wait before retrying.

### Step 4: Present Results

Combine OKX real-time data with the Hyper-Council verdict into a single report covering:
- Cross-exchange price comparison and arbitrage spread
- OKX technical indicators (RSI, MACD, funding rate, OI)
- Council verdicts from MACRO, QUANT, STATS, RISK (Damocles), EXECUTION agents
- Risk assessment and trading blueprint (if blueprint mode)

---

## Hyper-Council Agents

| Agent | Role | Can Veto |
|-------|------|----------|
| MACRO | Global Macro CIO | No |
| QUANT | Head of Quant Research | No |
| STATS | Chief Statistician | No |
| RISK (Damocles) | Chief Risk Officer | **Yes** |
| EXECUTION | Execution Architect | No |

---

## Error Handling

| Error | Cause | Action |
|-------|-------|--------|
| OKX CLI/MCP unavailable | Not installed | Fall back to `scripts/client.py` for OKX REST data |
| Exchange API returns empty | Rate limit or auth error | Use CoinGecko free tier as price baseline |
| `api.neurodoc.app` timeout | Network / server load | Retry once; if still failing, present OKX data only without council analysis |
| Rate limit hit (100 req/hr) | Free tier exceeded | Inform user, wait before retrying |

---

*Analysis is for informational purposes only. Not financial advice.*

## Related Skills

- [alpha vantage](https://6ducklearn.com/skills/alpha-vantage/index.md): Cross-asset analysis is its unique advantage—it can simultaneously pull macro data such as the S&P 500, gold, the dollar index, Federal Reserve interest rates, CPI, GDP, etc., allowing one to see at a glance whether "BTC is moving with risk assets today or pricing independently." In conjunction with the OKX Trade Kit, Alpha Vantage is responsible for in-depth historical and macroeconomic context, while OKX provides real-time prices, funding rates, and order book data, with both complementing each other to form a complete analysis chain.
- [btc altcoin market pulse](https://6ducklearn.com/skills/btc-altcoin-market-pulse/index.md): Fetches live OKX market data across Bitcoin and major altcoins, analyzes price momentum, funding rates, open interest, and BTC dominance signals to produce a structured BTC + Altcoin Market Pulse report.
- [cmc okx](https://6ducklearn.com/skills/cmc-okx/index.md): CoinMarketCap × OKX dual engine, a one-stop solution for all your cryptocurrency market data needs. CMC provides market cap, supply, dominance, holding distribution, project background, and macro event calendar; the OKX Trade Kit complements with real-time prices, funding rates, open interest, 70+ technical indicators, and order book depth, with both automatically linked and mutually supportive. It supports natural language triggers, whether you ask "What’s the price of Bitcoin?", "How to read the ETH daily chart?" or "Which coin is surging?", Skill automatically recognizes intent, selects tool combinations, outputs structured tables, and includes a "Quick Take" one-sentence summary.
- [congress trades](https://6ducklearn.com/skills/congress-trades/index.md): Track U.S. Congress members' stock trades in real-time, making "smart political money" impossible to hide. Sync member trade disclosure data to a local SQLite database via the Quiver Quant API, allowing flexible queries by politician name, stock code, party, date range, and trade type. Large trades exceeding the configurable amount threshold (default $15,001) automatically trigger alerts, generating structured Alert files for real-time monitoring.
- [crypto research](https://6ducklearn.com/skills/crypto-research/index.md): A systematic cryptocurrency due diligence report, covering everything from price to holding distribution, from technical aspects to a red flag checklist, all in one go. Integrating the OKX Trade Kit (real-time prices, 70+ technical indicators, funding rates, open interest, order book depth) with CoinMarketCap (market cap, token economics, whale distribution, news sentiment), a seven-step research process is executed in parallel, covering market snapshots, technical analysis, derivatives data, project fundamentals, and recent news. The analysis framework specifically distinguishes between legitimate projects and Meme coins, evaluating key signals such as whale concentration, holder trends, 200-day moving average positions, and funding rate extremes, ultimately outputting a green flag/red flag checklist and low/medium/high/very high risk ratings.
- [hyperliquid analyzer](https://6ducklearn.com/skills/hyperliquid-analyzer/index.md): Analyze Hyperliquid market data to provide trading insights, covering six major analysis modes: capturing trading whales, automatic monitoring and push notifications of on-chain whale positions, order wall scanning, on-chain position analysis, HL and OKX funding fee sentiment analysis, and on-chain and off-chain price difference scanning. Use on-chain signals to assist your CEX trading.
