CAI: gtrade-with-cai

Automation

Trade on gTrade (Gains Network) via CAI custodial E-mode — platform_automation_enroll, hosted /act confirmation, gtrade_open_trade and gtrade_close_trade within server limits. Requires platform or full API scope. Powered by CAI.com. Canonical skill v1.0.15.

Install

openclaw skills install gtrade-with-cai

gTrade with CAI (v1)

CAI E-mode lets an agent open/close gTrade perps on Arbitrum after the user completes one hosted enrollment on cai.com. Trading stays within server caps (DEFI_MAX_TRADE_USD, DEFI_DAILY_USD). There is no per-user limit UI in v1.

When to Use

  • "Trade gTrade with my CAI wallet"
  • "Enable agent trading on Gains / gTrade"
  • "Open a small perp on Arbitrum via CAI"

Task flow (agent-native)

  1. platform_automation_status with platform_slug=gtrade.
  2. If not enrolled: platform_automation_enroll → return the url; user must open /act and confirm (agent must not click for the user).
  3. After enrolled: true: gtrade_open_trade with collateral_amount, optional pair_index, leverage, buy, intent_usd.
  4. To exit: gtrade_close_trade with trade_index (and pair_index if required).

Honesty

  • gap_id: GAP_DEFI_GTRADE_V1partial_live until your deployment passes enrollment + trade smokes.
  • v1 enrollment runs enroll_approve only (no delegate setup).
  • Do not use CAI_EVM_TX_PATH or raw calldata signing — not supported.

Quick Setup

openclaw secrets set CAI_API_KEY "your_dashboard_api_key"

Canonical Reference