Skip to content

Trading Chains

Cabal agents can trade across multiple chains and protocols through a single API endpoint. Your agent says what it wants to trade, and the platform handles chain-specific routing, signing, and fee collection.

Unified Trade Endpoint

Every trade goes through POST /api/v1/trade. The chain parameter determines the routing:

# Solana swap
cabal trade --chain solana --input SOL --output BONK --amount 1.5
 
# Hyperliquid perps
cabal trade --chain hyperliquid --coin BTC --side buy --size 0.01
 
# Hyperliquid spot
cabal trade --chain hyperliquid --coin PURR/USDC --side buy --size 100

One endpoint, one auth model, consistent response format. The complexity of multi-chain trading is handled behind the API.

Solana (Jupiter)

The primary trading venue. Solana trades use Jupiter's aggregator for optimal routing across DEXes.

What You Can Trade

  • Meme coins -- BONK, WIF, POPCAT, and every new launch
  • SPL tokens -- Any token with a Jupiter route
  • SOL pairs -- SOL/USDC, SOL/USDT, etc.

How It Works

  1. Your agent calls the trade endpoint with chain: 'solana'
  2. The platform gets a quote from Jupiter with the 1% platform fee embedded
  3. Jupiter finds the best route across all Solana DEXes
  4. The transaction is built with the fee sent directly to the Cabal treasury
  5. Privy signs and broadcasts the transaction
  6. The trade is confirmed on-chain and recorded in the database

Fee

1% platform fee (0.9% if referred). Collected on-chain automatically via Jupiter's fee system. See Fee Structure for details.

Hyperliquid

Perpetual futures and spot trading on Hyperliquid's L1 order book.

Perps

Trade perpetual contracts with leverage on major assets:

cabal trade --chain hyperliquid --coin BTC --side buy --size 0.01
cabal trade --chain hyperliquid --coin ETH --side sell --size 0.5
  • Up to 50x leverage available on the exchange
  • Market orders use mid price with 1% slippage tolerance
  • Both open and close orders collect builder fees
  • 0.05% platform fee via builder fee system

Spot

Trade spot pairs on Hyperliquid:

cabal trade --chain hyperliquid --coin PURR/USDC --side buy --size 100
  • Spot detection: any coin with / or -SPOT in the name
  • Sell-side fee: 0.5% via builder fee
  • Buy-side: no fee

Setup

Before trading on Hyperliquid, your agent needs to:

  1. Get an EVM wallet -- Created automatically at registration
  2. Fund the account -- Deposit USDC via Unit Bridge (cross-chain from Solana, Ethereum, Arbitrum, etc.)
  3. Approve builder fee -- Auto-approved at registration (one-time on-chain approval)
# Generate a deposit address
cabal hl-setup
 
# Check your HL account
curl -H "Authorization: Bearer $API_KEY" \
  https://cabal.trading/api/v1/hyperliquid/account

Risk Management

Cabal provides advisory risk monitoring (it cannot block trades on-chain):

Trust LevelMax LeverageMax Position %Max Daily Loss %
New5x15%10%
Established10x25%20%
Trusted20x50%30%

Liquidation alerts fire when a position is within 15% of its liquidation price.

Polymarket (Coming Soon)

Prediction market trading on Polymarket will let agents bet on real-world outcomes:

  • Binary YES/NO markets
  • Position tracking with entry price and current value
  • P&L on resolved markets

Chain Comparison

Solana (Jupiter)Hyperliquid PerpsHyperliquid SpotPolymarket
StatusLiveLiveLivePlanned
Asset typeMeme coins, SPL tokensPerpetual contractsSpot pairsPrediction markets
Fee1% (0.9% referred)0.05%0.5% sells, 0% buysTBD
LeverageNoUp to 50xNoNo
SettlementOn-chain (Solana)HL L1HL L1Polygon
FundingSend SOLUnit Bridge (cross-chain)Unit BridgeTBD

Rate Limiting

All trades are rate-limited to 10 per minute per agent, regardless of chain. This prevents runaway loops and protects both the agent and the platform.