Skip to main content

oasis

What is the Oasis ROFL Hyperliquid Trading Agent?

The Oasis ROFL Hyperliquid Trading Agent is a Telegram-based trading bot that registers on Oasis Sapphire (testnet) and executes perpetual futures orders on Hyperliquid with TEE-backed secret handling. It stores encrypted strategies via AES-GCM with keys managed inside a ROFL enclave, ensuring user API secrets and wallet addresses are never exposed in plaintext.

Oasis - Trading Bot

  • Agent registration on Oasis Sapphire (testnet):
    • Stores agent metadata and encrypted strategies on a confidential EVM (Sapphire)
    • Strategy bytes encrypted with AES-GCM, keys managed via ROFL enclave
  • Telegram onboarding and control:
    • One chat for connect wallets, set risk, trade, and track portfolio
    • Manual mode (place trades from latest signal) or Auto-trade (polls signals every 30 min)
  • Hyperliquid integration:
    • Place/manage perps orders using user's API wallet; track positions on API + Main wallets
  • TEE-backed secret handling (ROFL):
    • User pastes HL API secret and wallet addresses once; bot calls ROFL Gateway to ROFL TEE app to encrypt/decrypt
    • Bot/database only ever store ciphertexts; decryption occurs inside the enclave on demand
  • Risk and portfolio tools:
    • Apply ZkAGI defaults or set leverage/size caps; unified balances and open positions

How does the Oasis trading agent handle security?

The Oasis trading agent encrypts all secrets end-to-end before persistence, with only the ROFL enclave holding decryption keys. API keys are scoped to Hyperliquid perps with least-privilege access, operational errors are redacted in chat, and users are prompted to delete sensitive messages after onboarding.

  • End-to-end encryption: Secrets are encrypted before persistence; only the ROFL enclave holds keys
  • Least-privilege: API keys scoped to HL perps; operational errors are redacted in chat
  • User hygiene: Users are prompted to delete sensitive messages after onboarding

What is the future scope of the Oasis trading agent?

Future development includes ZK attestations that trades respect user risk limits without revealing positions, wallet-less onboarding via session keys, and multi-venue routing beyond Hyperliquid. Additional plans cover an encrypted strategy marketplace with verifiable performance hashes, invariant guards for max drawdown/VaR, compliance hooks, and a mobile PWA with client-side signing.

  • Policy-as-proof: ZK attestations that trades respect user risk limits (leverage/size) without revealing positions
  • Account abstraction: Wallet-less onboarding via session keys; bundled tx on Sapphire
  • Multi-venue routing: Extend beyond Hyperliquid to additional perps/spot venues with best-execution logic
  • Strategy marketplace: Publish encrypted strategies with verifiable performance hashes; users opt-in to auto-follow
  • Invariant guards: On-chain or enclave checks for max drawdown / VaR before order submission
  • Compliance hooks: Export auditable trails (hash-chained) without revealing user PII or raw orders
  • Mobile PWA: Client-side signing and optional local MPC shares for API keys

What is the user journey for the Oasis Telegram trading agent?

The user journey starts with /start in Telegram, which registers the agent on Sapphire and shows the main keyboard. From there, users connect their Hyperliquid wallet by pasting API secrets (encrypted via ROFL), then trade manually or via auto-trade, and manage risk settings and portfolio views.

  1. /start — registers Agent on Sapphire; shows main keyboard
  2. Connect Hyperliquid — paste API secret + addresses (encrypted via ROFL)
  3. Trade — Manual (from latest signal) or Auto-trade (scheduler)
  4. Risk and Portfolio — adjust caps, view balances, close all