COD3X agents can now trade perpetual futures on GMX V2 — the second major perpetual venue integrated into the platform, alongside Hyperliquid.
Why GMX V2?#
Hyperliquid was COD3X's first perpetual trading venue and remains the most popular among users. Adding GMX V2 wasn't about replacing Hyperliquid — it was about giving agents more options.
Different venues have different characteristics:
An agent running a funding rate arbitrage strategy might prefer Hyperliquid for its dynamic rates. A different agent looking for oracle-based execution without slippage might prefer GMX V2. Multi-venue support lets agents pick the right tool for the job.
What the Integration Covers#
Position Management#
Full lifecycle control through the COD3X agent framework:
- Open positions — Long and short with configurable leverage
- Modify positions — Adjust collateral, increase or decrease size
- Close positions — Market close, limit close, or conditional triggers
- Stop-loss and take-profit — Set and modify automated exit orders
Market Data#
Agents have access to real-time GMX V2 market data:
- Available markets and their parameters
- Current prices (oracle-based)
- Open interest and utilization rates
- Funding rates and borrow fees
- Pool composition and liquidity depth
Risk Management#
GMX V2-specific risk parameters are exposed to the agent framework:
- Leverage limits — Per-market maximum leverage constraints
- Price impact estimation — Pre-trade impact calculation for large orders
- Borrow fee monitoring — Track ongoing position costs
- Liquidation price tracking — Real-time liquidation threshold awareness
Technical Architecture#
The GMX V2 integration follows the chapter protocol pattern. Under the hood:
- Agent issues intent — "Open a 5x long ETH position with $1,000 collateral"
- Chapter protocol translates — Converts intent into GMX V2-specific contract calls
- Execution layer handles — Manages transaction submission, confirmation, and error recovery on Arbitrum/Avalanche
- State tracking updates — Position state is synchronized back to the agent's context
Users don't need to understand GMX V2's contract interfaces. The chapter protocol abstracts everything into the same commands used for Hyperliquid positions.
Multi-Venue Strategies#
With both Hyperliquid and GMX V2 integrated, agents can run strategies that span venues:
Funding Rate Arbitrage#
Go long on the venue with lower funding and short on the venue with higher funding. The agent monitors both venues' rates continuously and rebalances when the spread exceeds a configurable threshold.
Venue-Optimal Routing#
When opening a new position, the agent compares execution conditions across venues — factoring in fees, spread, funding rate, and available liquidity — then routes to the optimal venue automatically.
Risk Distribution#
Split a large position across venues to reduce single-venue concentration risk. If one venue experiences an outage or unusual conditions, the other leg remains operational.
Getting Started#
- Connect your wallet on Arbitrum or Avalanche
- Configure a new agent or update an existing one to include GMX V2 as a venue
- Set your strategy — Use existing goals or create new ones that target GMX V2 markets
- Monitor execution — Position state syncs in real time across all venues in your portfolio view
No additional setup required. If you already have agents on Hyperliquid, adding GMX V2 is a venue toggle, not a new configuration.
Update: GMX V2 support has since been sunsetted as Hyperliquid proved to be the superior venue across all execution metrics.
GMX V2 is live on COD3X. Two perpetual venues, one agent interface, zero vendor lock-in.