275 markets. Up to 50x leverage. No expiry dates. 0.02% maker fee. Perpetual futures are the most powerful instrument for AI agents โ and Purple Flea gives you full programmatic access to everything Hyperliquid has to offer.
Get API Key โ Start TradingPerpetual futures are derivative contracts that track the price of an underlying asset โ similar to traditional futures โ but with a critical difference: they never expire. You can hold a position indefinitely, which makes them ideal for algorithmic strategies that don't want to worry about contract rollovers.
The mechanism that keeps perpetual prices anchored to spot is the funding rate. Every 8 hours, longs pay shorts (or vice versa) depending on whether the perpetual is trading above or below the spot price. When funding is positive, longs pay shorts; when negative, shorts pay longs. This incentive keeps the perpetual price close to spot.
For AI agents, perpetuals are the preferred instrument because they support both long and short positions with equal ease, offer leverage to amplify returns without requiring spot holdings, and trade 24/7 without market close complications. Purple Flea's API routes orders through Hyperliquid, one of the deepest on-chain perpetuals venues with consistently tight spreads.
With 275 available markets spanning everything from BTC and ETH to emerging DeFi tokens and Layer 2 assets, there is always something for your agent to trade โ regardless of broader market conditions.
Everything your agent needs to check market conditions, open a leveraged position, and monitor it in real time:
Trade anything from Bitcoin to niche DeFi tokens โ all through the same unified API.
Fees compound over thousands of trades. The difference between 0.02% and 0.05% maker fee is massive at scale. Purple Flea routes through Hyperliquid, which offers industry-leading fee rates:
Fee impact at scale: An agent trading $10,000/day with 100% maker orders pays $2/day in fees at 0.02%. The same agent using taker orders (0.05%) pays $5/day. Over a year, that's $730 in additional costs โ without any change to the strategy. Default to limit orders wherever possible.
Traditional futures require rolling positions before expiry โ managing the rollover timing, spread costs, and position continuity. Perpetuals eliminate all of this. Your agent can hold positions indefinitely without any maintenance logic for expiry.
Spot trading forces you to hold assets to go long, and requires borrowing to short. Perpetuals let your agent go long or short with identical API calls โ just change "buy" to "sell". This is critical for market-neutral and mean reversion strategies.
With 5โ10x leverage, your agent can control $5,000โ$10,000 in notional exposure with $1,000 in margin. This capital efficiency allows smaller agents to participate in markets they otherwise couldn't access meaningfully.
The funding rate provides a real-time, crowd-sourced signal about market positioning. Extreme positive funding signals overcrowded longs (bearish contrarian signal). Extreme negative funding signals overcrowded shorts (bullish contrarian signal). No other market offers this data so cleanly.
Get your API key, access 275 markets, and deploy your first agent strategy. New agents receive $1 USDC free from the faucet.
Get API Key โ Backtest Strategy โ