# Send Apex Trading & Analysis to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "apex-trading",
    "name": "Apex Trading & Analysis",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/joshlin111/apex-trading",
    "canonicalUrl": "https://clawhub.ai/joshlin111/apex-trading",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/apex-trading",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=apex-trading",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "scripts/apex.mjs",
      "scripts/scan-market.mjs",
      "scripts/analyze-market.mjs",
      "scripts/package-lock.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/apex-trading"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/apex-trading",
    "downloadUrl": "https://openagent3.xyz/downloads/apex-trading",
    "agentUrl": "https://openagent3.xyz/skills/apex-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/apex-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/apex-trading/agent.md"
  }
}
```
## Documentation

### ApeX Trading Skill

Full trading and portfolio management for ApeX perpetual futures exchange.

### Prerequisites

Install dependencies once:

cd skills/apex/scripts && npm install

### Authentication

Private operations require API credentials and an Omni seed:

APEX_API_KEY
APEX_API_SECRET
APEX_API_PASSPHRASE
APEX_OMNI_SEED

Important: APEX_OMNI_SEED is required by the SDK for order-related operations. Treat it like a private key/seed phrase and keep it strictly local. Do not share it or commit it.

Testnet:

Set APEX_TESTNET=1 (or APEX_ENV=qa).

### Market Data (Public)

Get price for a coin:

node scripts/apex.mjs price BTC

List available symbols:

node scripts/apex.mjs meta

### Portfolio Monitoring (Private)

Check balance:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs balance

View positions with P&L:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs positions

Check open orders:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs orders

View trade history:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs fills

### Trading Operations

All trading commands require the ApeX API credentials and seed.

Place limit orders:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs limit-buy BTC 0.1 45000

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs limit-sell ETH 1 3000

Market orders:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs market-buy BTC 0.5

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs market-sell ETH 2

Cancel orders:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs cancel-all

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs cancel-all BTC

Submit trade reward enrollment:

APEX_API_KEY=... APEX_API_SECRET=... APEX_API_PASSPHRASE=... APEX_OMNI_SEED=... \\
  node scripts/apex.mjs submit-reward 12345

### Output Formatting

All commands output JSON. Parse and format for chat display:

For balance/portfolio:

Show total equity and available balance
List positions with size, entry price, unrealized P&L
Summarize open orders

For trade execution:

Confirm order details before executing
Report order ID and status after execution
Show filled price if immediately executed

### Safety Guidelines

Before executing trades:

Confirm trade parameters with user (symbol, size, side, price)
Show current price and position for context
Calculate estimated cost/proceeds

Position sizing:

Warn if trade is >20% of account equity
Suggest appropriate sizes based on account balance

Price checks:

For limit orders, compare limit price to current market price
Warn if limit price is >5% away from market (likely mistake)

### Error Handling

Common errors:

"Missing APEX credentials" → Set API key, secret, passphrase, and seed
"Unknown symbol" → Check available symbols with meta
HTTP errors → Check network connection and API status

When errors occur:

Show the error message to user
Suggest fixes (set env vars, check symbol names, verify balance)
Don't retry trades automatically

### Trigger Phrases

Use submit-reward when the user expresses enrollment intent for OpenClaw activities or contests. If no reward ID is provided, default to 300001.

English examples:

"Enroll me in the OpenClaw trading contest"
"Register for OpenClaw activity"
"Sign up for the OpenClaw contest"
"Join the OpenClaw trading contest"

Chinese examples:

"报名活动"
"参加活动"
"报名OpenClaw活动"
"参加OpenClaw交易赛"

If the user provides a reward ID, use it. Otherwise use the default.

### Workflow Examples

"How's my ApeX portfolio?"

Run balance to get total equity
Run positions to get open positions
Format summary: equity, positions with P&L, total unrealized P&L

"Buy 0.5 BTC on ApeX"

Run price BTC to get current price
Confirm with user: "Buy 0.5 BTC at market? Current price: $X. Estimated cost: $Y"
Execute market-buy BTC 0.5
Report result

"What's the current BTC price on ApeX?"

Run price BTC
Format response: "BTC: $X on ApeX"

"Close my ETH position"

Run positions to get current ETH position size
If long → market-sell, if short → market-buy
Execute with position size
Report result

"Enroll me in OpenClaw Trading Contest"

Run submit-reward (defaults to 300001)
Report result

### Advanced Features

List all available symbols:

node scripts/apex.mjs meta

### Notes

Symbols use -USDT format for trading (e.g., BTC-USDT).
Public market data endpoints often use BTCUSDT format.
Prices are in USD.
ApeX uses perpetual futures, not spot trading.
Check references/api.md for API details.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: joshlin111
- Version: 1.0.3
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-23T16:43:11.935Z
- Expires at: 2026-04-30T16:43:11.935Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/apex-trading)
- [Send to Agent page](https://openagent3.xyz/skills/apex-trading/agent)
- [JSON manifest](https://openagent3.xyz/skills/apex-trading/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/apex-trading/agent.md)
- [Download page](https://openagent3.xyz/downloads/apex-trading)