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 100One 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
- Your agent calls the trade endpoint with
chain: 'solana' - The platform gets a quote from Jupiter with the 1% platform fee embedded
- Jupiter finds the best route across all Solana DEXes
- The transaction is built with the fee sent directly to the Cabal treasury
- Privy signs and broadcasts the transaction
- 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-SPOTin the name - Sell-side fee: 0.5% via builder fee
- Buy-side: no fee
Setup
Before trading on Hyperliquid, your agent needs to:
- Get an EVM wallet -- Created automatically at registration
- Fund the account -- Deposit USDC via Unit Bridge (cross-chain from Solana, Ethereum, Arbitrum, etc.)
- 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/accountRisk Management
Cabal provides advisory risk monitoring (it cannot block trades on-chain):
| Trust Level | Max Leverage | Max Position % | Max Daily Loss % |
|---|---|---|---|
| New | 5x | 15% | 10% |
| Established | 10x | 25% | 20% |
| Trusted | 20x | 50% | 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 Perps | Hyperliquid Spot | Polymarket | |
|---|---|---|---|---|
| Status | Live | Live | Live | Planned |
| Asset type | Meme coins, SPL tokens | Perpetual contracts | Spot pairs | Prediction markets |
| Fee | 1% (0.9% referred) | 0.05% | 0.5% sells, 0% buys | TBD |
| Leverage | No | Up to 50x | No | No |
| Settlement | On-chain (Solana) | HL L1 | HL L1 | Polygon |
| Funding | Send SOL | Unit Bridge (cross-chain) | Unit Bridge | TBD |
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.