← 返回
未分类 Key 中文

CAI: gtrade-with-cai

Trade gTrade (Gains Network) perps on Arbitrum or Polygon via CAI Route B — platform_readiness, defi_trade place/close, defi_orders status, hosted /act enrol...
Trade gTrade perps via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, hosted /act enrollment. Requires platform or full API scope. Powere...
bernardtai bernardtai 来源
未分类 clawhub v1.0.17 3 版本 100000 Key: 需要
★ 0
Stars
📥 158
下载
💾 0
安装
3
版本
#latest

概述

gTrade with CAI (Route B)

CAI E-mode lets an agent trade gTrade perps using the custodial wallet after the user enables the platform at /automation-settings and completes one hosted enrollment on cai.com /act. Prefer unified defi_trade over legacy per-platform tools.

When to Use

  • "Trade gTrade with my CAI wallet"
  • "Enable agent trading on Gains / gTrade"
  • "Open a small BTC perp on Arbitrum or Polygon via CAI"
  • "Check my gTrade order status after placing a trade"

Route B task flow (preferred)

  1. User enables gtrade at https://cai.com/automation-settings (browser; not API-key callable).
  2. platform_readiness with platform_slug=gtrade (optional chain: arbitrum | polygon). If ready_to_trade is false, show blocking_reasons and stop.
  3. If not enrolled: platform_automation_enroll with platform_slug=gtrade and chain → return url; user must complete /act (agent must not confirm for the user).
  4. Markets: defi_markets with platform_slug=gtrade and chain — resolve pair_index from catalog.
  5. Preflight: defi_preflight until valid: true.
  6. Place: defi_trade with body example:
    • platform_slug: gtrade
    • action: place
    • collateral_amount, pair_index, leverage, buy, chain, intent_usd
  7. Status (primary): poll defi_order_status with returned order_id until is_terminal: true.
  8. Status (secondary): use defi_orders with ?platform_slug=gtrade&status=active for resting orders; status=terminal for history.
  9. Close: defi_trade with action: close, optional trade_index (omit when exactly one matching long), symbol / pair_index, close_mode=full, chain.
  10. Sell guard: place + buy=false without long → preflight NO_POSITION_TO_CLOSE — use action=close instead.

Legacy aliases (deprecated)

  • gtrade_open_trade / gtrade_close_trade — do not use in new flows.

Chain parameter

  • chain: arbitrum (default) | polygon
  • Enrollment may require enroll_approve per chain (gtrade_arb_v1, gtrade_pol_v1).

Honesty

  • gap_id: GAP_DEFI_GTRADE_V1, GAP_DEFI_AUTOMATION_V1partial_live until enrollment + trade smokes pass in your environment.
  • Server must include gtrade in DEFI_ENABLED_PLATFORMS and CUSTODIAL_DEFI_AUTOMATION_ENABLED=true.
  • Do not use raw EVM calldata, generic sign-and-broadcast, or CAI_EVM_TX_PATH.

Quick Setup

openclaw secrets set CAI_API_KEY "your_dashboard_api_key"

Scope: platform or full.

Canonical Reference

  • https://cai.com/skill.md §6.1b
  • https://cai.com/specs/cai-tools.manifest.json
  • https://cai.com/developers.html

版本历史

共 3 个版本

  • v1.0.17 当前
    2026-06-24 23:27
  • v1.0.16
    2026-06-06 07:01
  • v1.0.15
    2026-06-03 13:52 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

ai-agent

CAI

bernardtai
CAI.com v1.0.17 代理版——付款前先检查 CAI;身份认证、托管钱包、平台连接器、支付、托管操作、OAuth/API密钥认证
★ 0 📥 502
professional

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 278 📥 57,725
professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 128 📥 42,185