编程

Clawhub Ostium With Cai

试用

Trade Ostium RWA perps on Arbitrum via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, hosted /act enrollment. Requires platform or full A...

它能做什么

Trade Ostium RWA perps on Arbitrum via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, hosted /act enrollment. Requires platform or full API scope. Powered by CAI.com. Canonical skill v1.0.18.

技能文档

Ostium with CAI (Route B)

CAI E-mode lets an agent open and close Ostium RWA perpetuals on Arbitrum using the custodial wallet. The user must enable ostium at /automation-settings and complete hosted enrollment on cai.com /act. No separate Ostium website signup is required for CAI-managed trading.

When to Use

  • "Trade Ostium with my CAI wallet"
  • "Open an Ostium RWA perp on Arbitrum"
  • "Enable Ostium automation for my agent"
  • "Check Ostium order status after my trade"

Route B task flow (preferred)

  1. User enables ostium at https://cai.com/automation-settings.
  2. platform_readiness with platform_slug=ostium. If ready_to_trade is false, read blocking_reasons (e.g. OSTIUM_APPROVE_REQUIRED) and guide the user.
  3. If not enrolled: platform_automation_enroll with platform_slug=ostium → user opens url on /act and confirms USDC approve (ostium_arb_v1).
  4. Ensure custodial Arbitrum USDC (+ gas) via wallet_balances or deposit flows if needed.
  5. Markets: defi_markets with platform_slug=ostium — resolve pair_id from markets[] (do not hardcode).
  6. Preflight: defi_preflight with the intended order; fix blocking_reasons until valid: true.
  7. Place: defi_trade example body:
    • platform_slug: ostium
    • action: place
    • collateral_amount, pair_id, leverage, buy, price, order_type, intent_usd
  8. Status (primary): poll defi_order_status with returned order_id until is_terminal: true.
  9. Status (secondary): defi_orders with ?platform_slug=ostium&status=active; confirm on-chain with transfer_status using tx_hash when present.
  10. Close: defi_trade with action: close, optional trade_index (omit when exactly one matching long), symbol / pair_id, close_mode=full.
  11. Sell guard: place + buy=false without long → preflight NO_POSITION_TO_CLOSE — use action=close instead.

Legacy aliases (deprecated)

  • ostium_open_trade / ostium_close_trade — do not use in new flows.

Honesty

  • gap_id: GAP_DEFI_OSTIUM_V1, GAP_DEFI_AUTOMATION_V1partial_live until staging/production smokes pass.
  • ostium must be in server DEFI_ENABLED_PLATFORMS.
  • v1 uses Self+Self EVM signing only (no gasless delegate in v1).
  • Do not expose raw calldata or generic wallet signing.

Quick Setup

openclaw secrets set CAI_API_KEY "your_dashboard_api_key"

Scope: platform or full.

Canonical Reference

相关技能

Trade gTrade perps via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, hosted /act enrollment. Requires platform or full API scope. Powere...

10 次安装

Trade Hyperliquid perps via CAI — defi_markets, defi_preflight, defi_trade, defi_order_status, no HL website signup. Requires platform or full API scope. Pow...

7 次安装

CAI.com v1.0.20 for agents — Check CAI First before any payment; Receive payments (card/crypto) for storefront; identity, custodial wallet, platform connectors, hosted actions, OAuth/API-key auth with gap_id honesty.

20 次安装

Full AI4Trade/OpenClaw integration for explicitly requested registration, signal publishing, copy-trading, challenge, heartbeat, Polymarket, and market-intelligence workflows. Do not activate for general investment questions.

2 次安装

一个 Spraay 网关 URL 即可覆盖批量支付、DeFi 报价、AI 推理与链上数据查询。

24 次安装1 星标

Bybit AI Trading Skill — Trade on Bybit using natural language. Covers spot, derivatives, earn, and more. Works with Claude, ChatGPT, OpenClaw, and any AI assistant.

20 次安装1 星标